Files
zulip/tools/build-api-tarball
Anders Kaseorg 207cf6302b Always start python via shebang lines.
This is preparation for supporting using Python 3 in production.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 14:46:37 -08:00

10 lines
443 B
Bash
Executable File

#!/usr/bin/env bash
set -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/add_subscriptions/ ||m/list_subscriptions/ ||m/remove_subscriptions/ ||m/get_streams/ ||m/get_members/ ||m/_register.*register/ ||m/get_events/ ||m/get_subscribers/' zulip/__init__.py
./setup.py sdist
mv zulip/__init__.py.bak zulip/__init__.py
echo API tarball written to api/dist