2012-11-26 17:54:21 +01:00
|
|
|
#!/bin/sh -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.
|
2013-06-24 21:42:49 +02: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_public_streams/ ||m/get_members/ ||m/_register.*register/ ||m/get_events/' humbug/__init__.py
|
2013-02-01 21:42:47 +01:00
|
|
|
python setup.py sdist
|
2013-02-05 17:39:58 +01:00
|
|
|
mv humbug/__init__.py.bak humbug/__init__.py
|
2013-02-01 21:42:47 +01:00
|
|
|
echo API tarball written to api/dist
|