[Reproducible-commits] [debbindiff] 01/01: Verify that version in debian/changelog match debbindiff version

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Jan 10 13:27:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository debbindiff.

commit bad36217da086bc6cdc35c6ad9b7cb8f58ca87d4
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Jan 10 14:27:40 2015 +0100

    Verify that version in debian/changelog match debbindiff version
---
 debian/rules | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/rules b/debian/rules
index db55798..e6a9b7f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+VERSION = $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
+
 %:
 	dh $@ --with python2 --buildsystem=python_distutils
 
@@ -15,4 +17,8 @@ override_dh_installman: debian/debbindiff.1
 
 override_dh_clean:
 	rm -f debian/debbindiff.1
+	@if ! grep -q 'VERSION = "$(VERSION)"' debbindiff/__init__.py; then \
+		echo "Version in debian/changelog doesn't match debbindiff version"; \
+		exit 1; \
+	fi
 	dh_clean -O--buildsystem=python_distutils

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git



More information about the Reproducible-commits mailing list