setup: in the Makefile, refuse to upload tarballs unless someone has passed the environment variable "BB_BRANCH" with value "trunk"

This commit is contained in:
Zooko O'Whielacronx 2010-06-18 20:49:28 -07:00
parent ab80719198
commit f5917cd6b8

View File

@ -285,9 +285,7 @@ tarballs:
$(PYTHON) setup.py sdist --sumo --formats=bztar,gztar,zip
upload-tarballs:
for f in dist/allmydata-tahoe-*; do \
flappclient --furlfile ~/.tahoe-tarball-upload.furl upload-file $$f; \
done
@if [ "X${BB_BRANCH}" == "Xtrunk" ]; then for f in dist/allmydata-tahoe-*; do flappclient --furlfile ~/.tahoe-tarball-upload.furl upload-file $$f; done ; else echo not uploading tarballs because this is not trunk but is branch \"${BB_BRANCH}\" ; fi
# DEBIAN PACKAGING