diff options
author | David Kalnischkies <david@kalnischkies.de> | 2018-02-27 17:34:54 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2018-04-07 14:35:40 +0200 |
commit | bade156a593220bdff8455250115774a5da6db3f (patch) | |
tree | fa3698a61c548dfaf14d440aec56114c56252cab /prepare-release | |
parent | 2ff7306c1de386ff30c3196608800db51532f493 (diff) |
catch changelog ↔ NEWS dist mismatches in release script
At least it tries a little harder.
Gbp-Dch: Ignore
Diffstat (limited to 'prepare-release')
-rwxr-xr-x | prepare-release | 6 |
1 files changed, 6 insertions, 0 deletions
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 |