aboutsummaryrefslogtreecommitdiffhomepage
path: root/build_tools
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2016-05-25 16:51:04 +0000
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2016-05-25 16:56:00 +0000
commit79fa4d5c4a4ba152155d29c74208b6abef3f4d60 (patch)
treea579cc1df783019f95ccf5805d2bec08888133c8 /build_tools
parent23de5908cfd7f45eb879f28a6aa75187ed5a3262 (diff)
make_tarball: allow output to an environment-controlled path
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/make_tarball.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build_tools/make_tarball.sh b/build_tools/make_tarball.sh
index 5bbe9ebe..1231f585 100755
--- a/build_tools/make_tarball.sh
+++ b/build_tools/make_tarball.sh
@@ -4,6 +4,7 @@
# We use git to output a tree. But we also want to build the user documentation
# and put that in the tarball, so that nobody needs to have doxygen installed
# to build it.
+# Outputs to $FISH_ARTEFACT_PATH or ~/fish_built by default
# Exit on error
set -e
@@ -23,7 +24,8 @@ VERSION=`git describe --dirty 2>/dev/null`
prefix="fish-$VERSION"
# The path where we will output the tar file
-path=~/fish_built/$prefix.tar
+# Defaults to ~/fish_built
+path=${FISH_ARTEFACT_PATH:-~/fish_built}/$prefix.tar
# Clean up stuff we've written before
rm -f "$path" "$path".gz