zulip/tools/build-api-tarball
Tim Abbott c86fd609e2 Add tool to build an API tarball for distribution.
(imported from commit eeaf9f526f243cc628eede603fe1b1691c34977f)
2012-11-26 12:25:39 -05:00

8 lines
244 B
Bash
Executable File

#!/bin/sh -x
ref="$1"
if [ -z "$ref" ]; then
echo "You must specify the ref to base the API tarball on."
exit 1
fi
git archive --prefix=humbug-api/ -o /tmp/humbug-api.tar.gz "$ref" api/examples/ api/common.py api/__init__.py api/README