Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat Booth2020-08-25 19:01:35 +0000
committerMat Booth2020-08-25 19:03:35 +0000
commitd2d5e1813a3213c8c4ff3f6a5049fecd003111df (patch)
treed54c4d8bb7a8c81f2ca18e3586d50960126b231d
parent2f6d1ff5950edd8c0b55bbcc93491bce269e4272 (diff)
downloadorg.eclipse.linuxtools.eclipse-build-d2d5e1813a3213c8c4ff3f6a5049fecd003111df.tar.gz
org.eclipse.linuxtools.eclipse-build-d2d5e1813a3213c8c4ff3f6a5049fecd003111df.tar.xz
org.eclipse.linuxtools.eclipse-build-d2d5e1813a3213c8c4ff3f6a5049fecd003111df.zip
Allow ensure_arch script to fix up filenames containing the
arch identifier. Change-Id: I0f3a8bea95437c0a9f7e2e016769cfa5379ffad0 Signed-off-by: Mat Booth <mat.booth@redhat.com> Reviewed-on: https://git.eclipse.org/r/c/linuxtools/org.eclipse.linuxtools.eclipse-build/+/168210
-rwxr-xr-xutils/ensure_arch.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/ensure_arch.sh b/utils/ensure_arch.sh
index ad8c721..a53a5b1 100755
--- a/utils/ensure_arch.sh
+++ b/utils/ensure_arch.sh
@@ -14,13 +14,17 @@ if [ -z "$src" ] ; then
exit 1
fi
for a in ${@:3} ; do
- tgt=${src/$2/$a/}
+ tgt=${src/$2/$a}
if [ -d "$tgt" ] ; then
echo "bundle $tgt already exists"
else
cp -r ${src} $tgt
+ for f in $(cd $tgt && find . -type f | grep $2) ; do
+ mv $tgt/$f $tgt/${f/$2/$a}
+ done
find $tgt -type f -exec sed -i -e "s/$2/$a/g" {} \;
echo "bundle $tgt created"
fi
done
-popd 1>/dev/null \ No newline at end of file
+popd 1>/dev/null
+

Back to the top