summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ab6c0ac..36db831 100644
--- a/Makefile
+++ b/Makefile
@@ -46,15 +46,21 @@ distcheck: check dist
# source file, namely, setup.cfg. Setuptools/distutils black magic, may it rot
# in hell forever.
-release:
+.PHONY: releasechecklist
+releasechecklist:
@$(PYTHON) setup.py --version | grep -qv dev || { \
echo "Please remove the 'dev' suffix from the version number in src/gtimelog/__init__.py"; exit 1; }
@$(PYTHON) setup.py --long-description | rst2html --exit-status=2 > /dev/null
- @ver_and_date="`$(PYTHON) setup.py --version` (`date +%Y-%m-%d`)" && \
- grep -q "^$$ver_and_date$$" NEWS.txt || { \
+ @ver_and_date="`$(PYTHON) setup.py --version` (released `date +%Y-%m-%d`)" && \
+ grep -q "^Changes in version $$ver_and_date$$" NEWS.txt || { \
echo "NEWS.txt has no entry for $$ver_and_date"; exit 1; }
- make distcheck
+ # Bit of a chicken-and-egg here, but if the tree is unclean, make
+ # distcheck will fail. Thankfully bzr lets me uncommit.
test -z "`bzr status 2>&1`" || { echo; echo "Your working tree is not clean" 1>&2; bzr status; exit 1; }
+ make distcheck
+
+.PHONY: release
+release: releasechecklist
# I'm chicken so I won't actually do these things yet
@echo Please run $(PYTHON) setup.py sdist register upload
@echo Please run bzr tag `$(PYTHON) setup.py --version`