From 7774349072b579c9d7c852bbbf859711917d6aa0 Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Wed, 10 Aug 2016 18:35:22 -0700 Subject: [PATCH] Find a different place to cache the sandstorm-171 bundle This way, git won't list the file in `git status` and `make clean` won't wipe it out and force you to re-download the bundle. --- hack/.gitignore | 1 + make-bundle.sh | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 hack/.gitignore diff --git a/hack/.gitignore b/hack/.gitignore new file mode 100644 index 00000000..a85849e3 --- /dev/null +++ b/hack/.gitignore @@ -0,0 +1 @@ +sandstorm-171.tar.xz diff --git a/make-bundle.sh b/make-bundle.sh index 351ed17f..ff7865f2 100755 --- a/make-bundle.sh +++ b/make-bundle.sh @@ -110,16 +110,17 @@ cp $METEOR_DEV_BUNDLE/bin/node bundle/bin # Pull mongo v2.6 out of a previous Sandstorm package. OLD_BUNDLE_BASE=sandstorm-171 OLD_BUNDLE_FILENAME=$OLD_BUNDLE_BASE.tar.xz +OLD_BUNDLE_PATH=hack/$OLD_BUNDLE_FILENAME OLD_BUNDLE_SHA256=ebffd643dffeba349f139bee34e4ce33fd9b1298fafc1d6a31eb35a191059a99 OLD_MONGO_FILES="$OLD_BUNDLE_BASE/bin/mongo $OLD_BUNDLE_BASE/bin/mongod" -if [ ! -e "$OLD_BUNDLE_FILENAME" ] ; then +if [ ! -e "$OLD_BUNDLE_PATH" ] ; then echo "Fetching $OLD_BUNDLE_FILENAME to extract a mongo 2.6..." - curl --output "$OLD_BUNDLE_FILENAME" https://dl.sandstorm.io/$OLD_BUNDLE_FILENAME + curl --output "$OLD_BUNDLE_PATH" https://dl.sandstorm.io/$OLD_BUNDLE_FILENAME fi # Always check the checksum to guard against corrupted downloads. sha256sum --check <