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.
This commit is contained in:
Greg Price 2017-07-28 21:15:33 -07:00 committed by Tim Abbott
parent 93fbffebd7
commit 5a2f3fe9c2
1 changed files with 3 additions and 2 deletions

View File

@ -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"