2016-01-12 13:08:43 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -x
|
2013-02-01 21:42:47 +01:00
|
|
|
|
|
|
|
cd api/
|
2013-02-05 17:39:58 +01:00
|
|
|
# Strip out non-send_message bindings.
|
2016-01-08 05:58:58 +01:00
|
|
|
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
|
2016-11-22 01:44:16 +01:00
|
|
|
./setup.py sdist
|
2013-08-07 17:51:03 +02:00
|
|
|
mv zulip/__init__.py.bak zulip/__init__.py
|
2013-02-01 21:42:47 +01:00
|
|
|
echo API tarball written to api/dist
|