Avoid position sensitive argument errors with tar
Running art/tools/golem/build-target.sh with a more recent GNU tar
yields errors relating to --exclude being position sensitive
arguments. Move to latterly expected positions.
Test: art/tools/golem/build-target --machine-type=linux-armv7 --golem=art-opt-cc --tarball
Change-Id: I6d4d4bb3f52a8b76960813679be200e8337d3b21
diff --git a/tools/golem/build-target.sh b/tools/golem/build-target.sh
index 921a8cbe..45c9125 100755
--- a/tools/golem/build-target.sh
+++ b/tools/golem/build-target.sh
@@ -367,7 +367,7 @@
dirs_rooted+=("$root_dir/$tar_dir")
done
- execute tar -czf "${tarball}" "${dirs_rooted[@]}" --exclude .git --exclude .gitignore
+ execute tar -czf "${tarball}" --exclude ".git" --exclude ".gitignore" "${dirs_rooted[@]}"
tar_result=$?
if [[ $tar_result -ne 0 ]]; then
[[ -f $tarball ]] && rm $tarball