[libm4rie] 06/11: debian/rules: determine from changelog the name of -dbg package

Cédric Boutillier boutil at moszumanska.debian.org
Mon Oct 20 11:57:55 UTC 2014


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

boutil pushed a commit to branch master
in repository libm4rie.

commit 3d8103b2bff1dd8cd4bacabd82db3b4ec6bc2af4
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat Oct 18 21:31:33 2014 +0200

    debian/rules: determine from changelog the name of -dbg package
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 720f02f..2ecbe13 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
 include /usr/share/dpkg/buildflags.mk
 
@@ -7,4 +9,4 @@ include /usr/share/dpkg/buildflags.mk
 	dh $@ --with autoreconf
 
 override_dh_strip:
-	dh_strip --dbg-package=libm4rie-0.0.20130416-dbg
+	dh_strip --dbg-package=libm4rie-0.0.$(UPSTREAM_VERSION)-dbg

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



More information about the debian-science-commits mailing list