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-04 16:01:42 +02:00
|
|
|
perl -i.bak -ne 'print if !m/Client._register/ ||m/send_message/ ||m/get_messages/ ||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
|