aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoe Gregorio <jcgregorio@google.com>2012-06-20 12:15:24 -0400
committerJoe Gregorio <jcgregorio@google.com>2012-06-20 12:15:24 -0400
commit46675d2a8d016fab9b0934774577ecd6fd63728c (patch)
tree645eda9bff2fea17ecf9632ef1aa6c2136df718a /Makefile
parent84e4180c0b4b453ee9fc59f026e00631bc7af2d2 (diff)
downloadgoogle-api-python-client-46675d2a8d016fab9b0934774577ecd6fd63728c.tar.gz
Distribute the samples separately from the library source.
Fixes issue #155. Reviewed in http://codereview.appspot.com/6304106/.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f4881133a..dd3a2dc0e 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,9 @@ prerelease:
python expand-symlinks.py
cd snapshot; python setup.py clean
cd snapshot; python setup.py sdist --formats=gztar,zip
+ cd snapshot; tar czf google-api-python-client-samples-$(shell python setup.py --version).tar.gz samples
+ cd snapshot; zip -r google-api-python-client-samples-$(shell python setup.py --version).zip samples
+
.PHONY: release
release: prerelease
@@ -45,6 +48,8 @@ release: prerelease
wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py
python googlecode_upload.py --summary="google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.tar.gz
python googlecode_upload.py --summary="google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.zip
+ python googlecode_upload.py --summary="Samples for google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/google-api-python-client-samples-*.tar.gz
+ python googlecode_upload.py --summary="Samples for google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/google-api-python-client-samples-*.zip
.PHONY: oauth2_prerelease
oauth2_prerelease: