]> git.notmuchmail.org Git - notmuch/commitdiff
build-system: update version check to support non-native packages.
authorDavid Bremner <bremner@debian.org>
Sun, 17 Jul 2011 14:04:08 +0000 (11:04 -0300)
committerDavid Bremner <bremner@debian.org>
Sun, 17 Jul 2011 14:04:08 +0000 (11:04 -0300)
We could be a bit more flexible about this and support optional Debian
versions, but for the moment, we pick a policy and stick to it.

Makefile.local

index 2acc9d3a1d658f800317755cb95e232e66928acd..e9cee27dd4d167d51fe8ec49ffa757f145d31957 100644 (file)
@@ -167,8 +167,8 @@ endif
 
 .PHONY: verify-version-debian
 verify-version-debian: verify-version-components
-       @echo -n "Checking that Debian package version is $(VERSION)..."
-       @if [ "$(VERSION)" != $$(dpkg-parsechangelog | grep ^Version | awk '{print $$2}') ] ; then \
+       @echo -n "Checking that Debian package version is $(VERSION)-1..."
+       @if [ "$(VERSION)-1" != $$(dpkg-parsechangelog | grep ^Version | awk '{print $$2}') ] ; then \
                (echo "No." && \
                 echo "Please edit version and debian/changelog to have consistent versions." && false) \
         fi