From bade156a593220bdff8455250115774a5da6db3f Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 27 Feb 2018 17:34:54 +0100 Subject: catch changelog ↔ NEWS dist mismatches in release script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit At least it tries a little harder. Gbp-Dch: Ignore --- prepare-release | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'prepare-release') diff --git a/prepare-release b/prepare-release index e9e9362da..a37962cd7 100755 --- a/prepare-release +++ b/prepare-release @@ -105,6 +105,12 @@ elif [ "$1" = 'pre-build' ]; then echo "You probably want to run »./prepare-release pre-export« to fix this." exit 1 fi + NEWSDISTRIBUTION=$(dpkg-parsechangelog -l debian/NEWS | sed -n -e '/^Distribution:/s/^Distribution: //p') + if [ "$NEWSDISTRIBUTION" = 'UNRELEASED' ]; then + echo "changelog (${VERSION}) has a distribution (${DISTRIBUTION}) set, while the NEWS file hasn't!" + echo "You probably want to edit »debian/NEWS« to fix this." + exit 1 + fi fi elif [ "$1" = 'post-build' ]; then if [ "$DISTRIBUTION" != "UNRELEASED" ]; then -- cgit v1.2.3