mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
The corporate "app" is not a full-fledged Django app, but it has a urls.py and a templates directory. This commit creates the app and moves the jobs pages into it. Localserver deployments will not see any of the corporate code. (imported from commit 35889c3cf92329258c30741fdfa564769a4fac1a)
39 lines
603 B
Bash
Executable File
39 lines
603 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
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
|
|
corporate
|
|
static
|
|
tools
|
|
zilencer
|
|
.gitignore
|
|
templates/.gitignore
|
|
templates/corporate
|
|
puppet/zulip_internal
|
|
zproject/local_settings.py
|
|
EOF
|
|
|
|
echo $GITID > version_id
|
|
mv update-prod-static.log ..
|
|
|
|
cd ..
|
|
tar -czf $TARBALL zulip-server
|
|
|
|
rm -r zulip-server
|
|
echo "Generated $TARBALL"
|