forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minify JS in the localserver upgrade tarball.
This moves the list of removed files from .gitattributes to tools/build-local-server-tarball because static/ and tools/ are necessary for update-prod-static, and it seemed best to keep the entire list in one place. (imported from commit 2a447cbde29e90d776da43bb333650a40d4d363c)
- Loading branch information
Kevin Mehall
committed
Nov 4, 2013
1 parent
ca0848b
commit 78b45b6
Showing
5 changed files
with
41 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
#!/bin/sh -ex | ||
|
||
git archive -o /tmp/zulip-server.tar.gz --prefix=zulip-server/ HEAD | ||
GITID=$(git rev-parse HEAD) | ||
|
||
TMPDIR=$(mktemp -d) | ||
DIR=$TMPDIR/zulip-server/ | ||
TARBALL=$TMPDIR/zulip-server.tar.gz | ||
|
||
git checkout-index -f -a --prefix $DIR | ||
|
||
cd $DIR | ||
|
||
# update-prod-static generates the prod-static directory. | ||
# See COLLECTSTATIC in settings.py | ||
./tools/update-prod-static | ||
|
||
xargs rm -r <<EOF | ||
assets | ||
bots | ||
static | ||
tools | ||
zilencer | ||
.gitignore | ||
templates/.gitignore | ||
puppet/zulip-internal | ||
EOF | ||
|
||
echo $GITID > version_id | ||
mv update-prod-static.log .. | ||
|
||
cd .. | ||
tar -czf $TARBALL zulip-server | ||
|
||
rm -r zulip-server | ||
echo "Generated $TARBALL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters