From 5a2f3fe9c2e4ebc53928329d5d591f05fe3f0468 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Fri, 28 Jul 2017 21:15:33 -0700 Subject: [PATCH] build-release-tarball: Reorder a bit for clarity. This puts our fiddling with the update-prod-static logfiles immediately after we run update-prod-static. --- tools/build-release-tarball | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/build-release-tarball b/tools/build-release-tarball index 1053f26cd6..ad7aa392a0 100755 --- a/tools/build-release-tarball +++ b/tools/build-release-tarball @@ -105,14 +105,15 @@ ln -nfs "$BUILD_PROD_STATIC_LOGPATH" "$USER_PROD_STATIC_LOGPATH" echo -e "Check ${TMPDIR}/update-prod-static.log for more information.\033[0m" exit 1 ) -echo "$GITID" > build_id -echo "$version" > version rm -f "$USER_PROD_STATIC_LOGPATH" mv "$BUILD_PROD_STATIC_LOGPATH" "$USER_PROD_STATIC_LOGPATH" # We don't need duplicate copies of emoji with hashed paths, and they would break bugdown find prod-static/serve/generated/emoji/images/emoji/ -regex '.*\.[0-9a-f]+\.png' -delete +echo "$GITID" > build_id +echo "$version" > version + cd "$TMPDIR" tar --append -f "$TARBALL" "$prefix/prod-static" "$prefix/build_id" "$prefix/version" "$prefix/staticfiles.json" "$prefix/templates/zerver/emails/compiled" "$prefix/webpack-stats-production.json"