Add release and releasecheck Makefile targets.

This commit is contained in:
Bastian Kleineidam 2010-03-04 09:03:36 +01:00
parent 2577a454b9
commit c073f7c96d
1 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,18 @@ dist:
sha1sum ../$(ARCHIVE) > ../$(ARCHIVE).sha1
# cd .. && zip -r - patool-git -x "**/.git/**" > $(HOME)/temp/share/patool-devel.zip
.PHONY: release
release: clean releasecheck dist
@echo "Register at Python Package Index..."
$(PYTHON) setup.py register
.PHONY: releasecheck
releasecheck: check test
@if egrep -i "xx\.|xxxx|\.xx" doc/changelog.txt > /dev/null; then \
echo "Could not release: edit doc/changelog.txt release date"; false; \
fi
# The check programs used here are mostly local scripts on my private system.
# So for other developers there is no need to execute this target.
.PHONY: check