From 59405f317bf13896161d13eb485077f0b33154e7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 7 Jan 2011 09:35:19 -0800 Subject: [PATCH] debian: Update check for Debian package version. A version number like "1.1.0pre2" is properly translated into a Debian version number as "1.1.0~pre2", so we need to make that translation. Also, the Debian version number will often have suffixes on it, so don't check for a trailing parenthesis. --- debian/automake.mk | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/debian/automake.mk b/debian/automake.mk index f4931001..c6e584a0 100644 --- a/debian/automake.mk +++ b/debian/automake.mk @@ -43,12 +43,13 @@ EXTRA_DIST += \ debian/rules.modules check-debian-changelog-version: - @if $(FGREP) '($(VERSION))' $(srcdir)/debian/changelog >/dev/null; \ - then \ - :; \ - else \ - echo "Update debian/changelog to mention version $(VERSION)"; \ - exit 1; \ + @DEB_VERSION=`echo '$(VERSION)' | sed 's/pre/~pre/'`; \ + if $(FGREP) '($(DEB_VERSION)' $(srcdir)/debian/changelog >/dev/null; \ + then \ + :; \ + else \ + echo "Update debian/changelog to mention version $(VERSION)"; \ + exit 1; \ fi ALL_LOCAL += check-debian-changelog-version DIST_HOOKS += check-debian-changelog-version -- 2.30.2