]> git.notmuchmail.org Git - notmuch/commitdiff
make release: use sed to check debian version
authorTomi Ollila <tomi.ollila@iki.fi>
Mon, 21 Nov 2011 16:34:24 +0000 (18:34 +0200)
committerDavid Bremner <bremner@debian.org>
Thu, 24 Nov 2011 12:46:57 +0000 (08:46 -0400)
Use common sed tool instead of dpkg-parsechangelog (which is usually
available on debian systems only) to verify that debian version
information is consistent with version file.

Makefile.local

index 02afdd0f0308c24f2b71388f6e2dec5943d855d7..c94402b18d04e858fa89bd2e0a9b666fc14efeb5 100644 (file)
@@ -207,7 +207,7 @@ endif
 .PHONY: verify-version-debian
 verify-version-debian: verify-version-components
        @echo -n "Checking that Debian package version is $(VERSION)-1..."
-       @[ "$(VERSION)-1" = $$(dpkg-parsechangelog | grep ^Version | awk '{print $$2}') ] || \
+       @[ "$(VERSION)-1" = $$(sed '1{ s/).*//; s/.*(//; q; }' debian/changelog) ] || \
                (echo "No." && \
                 echo "Please edit version and debian/changelog to have consistent versions." && false)
        @echo "Good."