Reorder tar exclude options in try_benchmarks.sh for forward compatibility.
The latest GNU tar(1) releases requires --exclude to come first or it has no
effect.
Change-Id: Ia41c01d167c4e283cea4210f90d3764a708d3dcb
Reviewed-on: https://dart-review.googlesource.com/60120
Commit-Queue: Jonas Termansen <sortie@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
diff --git a/tools/bots/try_benchmarks.sh b/tools/bots/try_benchmarks.sh
index a2be3ca..919e1bb 100755
--- a/tools/bots/try_benchmarks.sh
+++ b/tools/bots/try_benchmarks.sh
@@ -72,6 +72,9 @@
./tools/build.py --mode=release --arch=ia32 create_sdk
./tools/build.py --mode=release --arch=ia32 runtime
tar -czf linux-ia32_profile.tar.gz \
+ --exclude .git \
+ --exclude .gitignore \
+ -- \
third_party/d8/linux/ia32/natives_blob.bin \
third_party/d8/linux/ia32/snapshot_blob.bin \
out/ReleaseIA32/vm_outline.dill \
@@ -92,8 +95,7 @@
pkg \
runtime/bin \
runtime/lib \
- --exclude .git \
- --exclude .gitignore || (rm -f linux-ia32_profile.tar.gz; exit 1)
+ || (rm -f linux-ia32_profile.tar.gz; exit 1)
strip -w \
-K 'kDartVmSnapshotData' \
-K 'kDartVmSnapshotInstructions' \
@@ -171,6 +173,9 @@
-K '_ZN4dart7Version7commit_E' \
-K '_ZN4dart9Bootstrap*_paths_E' third_party/d8/linux/ia32/d8
tar -czf linux-ia32.tar.gz \
+ --exclude .git \
+ --exclude .gitignore \
+ -- \
third_party/d8/linux/ia32/natives_blob.bin \
third_party/d8/linux/ia32/snapshot_blob.bin \
out/ReleaseIA32/vm_outline.dill \
@@ -192,8 +197,7 @@
pkg \
runtime/bin \
runtime/lib \
- --exclude .git \
- --exclude .gitignore || (rm -f linux-ia32.tar.gz; exit 1)
+ || (rm -f linux-ia32.tar.gz; exit 1)
elif [ "$command" = linux-ia32-benchmark ]; then
rm -rf tmp
mkdir tmp
@@ -237,6 +241,9 @@
./tools/build.py --mode=release --arch=simdbc64 runtime
./tools/build.py --mode=release --arch=x64 runtime_kernel
tar -czf linux-x64_profile.tar.gz \
+ --exclude .git \
+ --exclude .gitignore \
+ -- \
third_party/d8/linux/x64/natives_blob.bin \
third_party/d8/linux/x64/snapshot_blob.bin \
out/ReleaseX64/vm_outline.dill \
@@ -260,8 +267,7 @@
pkg \
runtime/bin \
runtime/lib \
- --exclude .git \
- --exclude .gitignore || (rm -f linux-x64_profile.tar.gz; exit 1)
+ || (rm -f linux-x64_profile.tar.gz; exit 1)
strip -w \
-K 'kDartVmSnapshotData' \
-K 'kDartVmSnapshotInstructions' \
@@ -358,6 +364,9 @@
-K '_ZN4dart7Version7commit_E' \
-K '_ZN4dart9Bootstrap*_paths_E' out/ReleaseX64/dart_precompiled_runtime
tar -czf linux-x64.tar.gz \
+ --exclude .git \
+ --exclude .gitignore \
+ -- \
third_party/d8/linux/x64/natives_blob.bin \
third_party/d8/linux/x64/snapshot_blob.bin \
out/ReleaseX64/vm_outline.dill \
@@ -381,8 +390,7 @@
pkg \
runtime/bin \
runtime/lib \
- --exclude .git \
- --exclude .gitignore || (rm -f linux-x64.tar.gz; exit 1)
+ || (rm -f linux-x64.tar.gz; exit 1)
elif [ "$command" = linux-x64-benchmark ]; then
rm -rf tmp
mkdir tmp