Files
zulip/tools/build-api-tarball
Tim Abbott b753eb0c1e [manual] Include the events API in the API tarballs.
Previously our receive API bindings were broken in our API tarballs
because we weren't including the receive API bindings which they used.

This requires our deploying the built API tarball to the prod server
when we deploy it so that the link on /api isn't broken.

(imported from commit 14ecaab34556f4e29c72f4f567d8af73c89d6297)
2013-06-04 15:53:36 -04:00

9 lines
309 B
Bash
Executable File

#!/bin/sh -x
cd api/
# Strip out non-send_message bindings.
perl -i.bak -ne 'print if !m/Client._register/ ||m/send_message/ ||m/get_messages/ ||m/_register.*register/ ||m/get_events/' humbug/__init__.py
python setup.py sdist
mv humbug/__init__.py.bak humbug/__init__.py
echo API tarball written to api/dist