moved sign_release.sh code to Makefile

This commit is contained in:
Pablo Hoffman 2010-06-14 09:49:07 -03:00
parent d8ac4857a5
commit 4262a0af8c
2 changed files with 8 additions and 13 deletions

View File

@ -7,11 +7,12 @@ BUILDDIR ?= $(BUILDBASE)/scrapy_$(FULL_VERSION).orig
BUILDTAR ?= $(BUILDBASE)/scrapy_$(FULL_VERSION).orig.tar.gz
help:
@echo 'Commonly used make targets:'
@echo 'Available targets:'
@echo ' deb-binary - build debian binary package'
@echo ' deb-source - build debian source package'
@echo ' deb-all - build source and binary debian packages'
@echo ' tarball - build source tarball'
@echo ' sign - sign release'
deb-binary: deb-prepare
cd $(BUILDDIR); debuild -i -us -uc -b
@ -35,3 +36,9 @@ deb-prepare:
tarball:
python setup.py sdist
sign:
md5sum dist/Scrapy-* > dist/MD5SUMS
sha1sum dist/Scrapy-* > dist/SHA1SUMS
gpg -ba dist/MD5SUMS
gpg -ba dist/SHA1SUMS

View File

@ -1,12 +0,0 @@
#!/bin/sh
# Script to sign a Scrapy release. To be run from root dir in Scrapy
# distribution.
cd dist
md5sum Scrapy-* > MD5SUMS
sha1sum Scrapy-* > SHA1SUMS
gpg -ba MD5SUMS
gpg -ba SHA1SUMS
# list files created
ls -l