aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2016-03-22 17:03:25 -0700
committerIgor Murashkin <iam@google.com>2016-03-22 17:03:25 -0700
commitf6a0a596784af4252d1dc8cf05b0c9a56c8edd77 (patch)
treee4d09fe0ca9326835cbb22b5aebbf9e446d1ff1a
parent11f99f63e1405086c4f8f26048ef92e7dae269b4 (diff)
downloadtestng-f6a0a596784af4252d1dc8cf05b0c9a56c8edd77.tar.gz
build: Speculative mac build fix.
Macs like the filename to be last (without the -e after the filename). This might fix the broken mac build. Bug: 27552463 Change-Id: If90753077f1c8e411cf9cfd7f91c09643977e9f2
-rwxr-xr-xgenerate-version-file4
1 files changed, 3 insertions, 1 deletions
diff --git a/generate-version-file b/generate-version-file
index 345ad5a8..d17edc32 100755
--- a/generate-version-file
+++ b/generate-version-file
@@ -53,5 +53,7 @@ if ! grep --silent "$template_variable" "$template_file"; then
exit 1
fi
+set -e
+
# Apply the template, replacing @version@ with the VERSION.
-sed "$template_file" -e "s:$template_variable:$stored_value:g"
+sed -e "s:$template_variable:$stored_value:g" "$template_file"