[libm4ri] 10/14: automatically read upstream version in debian/rules and reuse it to guess -dbg package name

Cédric Boutillier boutil at moszumanska.debian.org
Sat Oct 18 21:11:00 UTC 2014


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

boutil pushed a commit to branch master
in repository libm4ri.

commit f9be45c50fa0f51d2e04b738c897bccf620dfd48
Author: Cédric Boutillier <boutil at debian.org>
Date:   Wed Oct 15 23:13:55 2014 +0200

    automatically read upstream version in debian/rules and reuse it to guess -dbg package name
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 20d1d70..625b79f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1)
+
 DPKG_EXPORT_BUILDFLAGS = 1
 
 DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
@@ -16,4 +18,4 @@ override_dh_auto_configure:
 	dh_auto_configure -- $(additional_confflags)
 
 override_dh_strip:
-	dh_strip --dbg-package=libm4ri-0.0.20130416-dbg
+	dh_strip --dbg-package=libm4ri-0.0.$(UPSTREAM_VERSION)-dbg

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libm4ri.git



More information about the debian-science-commits mailing list