diff options
author | Tomi Ollila <tomi.ollila@iki.fi> | 2011-11-21 18:34:24 +0200 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-11-24 08:46:57 -0400 |
commit | ae7814bd61aee2967401ef4d14cb472ece7b6873 (patch) | |
tree | 20ea1b2f5d28ea0d8ad74fdebb7dd2d9352283a4 /Makefile.local | |
parent | fa3e2bad397fa3d8cb3e6edb99c55f8e00fecf04 (diff) |
make release: use sed to check debian version
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.
Diffstat (limited to 'Makefile.local')
-rw-r--r-- | Makefile.local | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.local b/Makefile.local index 02afdd0f..c94402b1 100644 --- a/Makefile.local +++ b/Makefile.local @@ -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." |