From c073f7c96d28b6062430a0d2bd72ec34c3c0bc83 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 4 Mar 2010 09:03:36 +0100 Subject: [PATCH] Add release and releasecheck Makefile targets. --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 082c9b7..1f451e3 100644 --- a/Makefile +++ b/Makefile @@ -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