2013-10-29 20:04:55 +01:00
|
|
|
#!/bin/sh -ex
|
|
|
|
|
2013-11-01 20:54:41 +01:00
|
|
|
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
|
2013-11-05 21:21:00 +01:00
|
|
|
puppet/zulip_internal
|
2013-11-01 20:54:41 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
echo $GITID > version_id
|
|
|
|
mv update-prod-static.log ..
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
tar -czf $TARBALL zulip-server
|
|
|
|
|
|
|
|
rm -r zulip-server
|
|
|
|
echo "Generated $TARBALL"
|