Check debian changelog on release.

This commit is contained in:
Bastian Kleineidam 2013-02-11 19:43:17 +01:00
parent d3bf550b6f
commit ae81b88acd

View file

@ -75,6 +75,7 @@ register:
freecode-submit < $(LAPPNAME).freecode freecode-submit < $(LAPPNAME).freecode
releasecheck: check releasecheck: check
git checkout master
@if egrep -i "xx\.|xxxx|\.xx" doc/changelog.txt > /dev/null; then \ @if egrep -i "xx\.|xxxx|\.xx" doc/changelog.txt > /dev/null; then \
echo "Could not release: edit doc/changelog.txt release date"; false; \ echo "Could not release: edit doc/changelog.txt release date"; false; \
fi fi
@ -86,6 +87,14 @@ releasecheck: check
echo "Could not release: edit $(LAPPNAME).freecode version"; false; \ echo "Could not release: edit $(LAPPNAME).freecode version"; false; \
fi fi
$(PYTHON) setup.py check --restructuredtext $(PYTHON) setup.py check --restructuredtext
git checkout debian
@if ! head -1 debian/changelog | grep "$(VERSION)" > /dev/null; then \
echo "Could not release: update debian/changelog version"; false; \
fi
@if head -1 debian/changelog | grep UNRELEASED >/dev/null; then \
echo "Could not release: set debian/changelog release name"; false; \
fi
git checkout master
# The check programs used here are mostly local scripts on my private system. # 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. # So for other developers there is no need to execute this target.