[libconvert-ytext-perl] 01/02: debian/rules: replace dpkg-parsechangelog call with /usr/share/dpkg/pkg-info.mk.
gregor herrmann
gregoa at debian.org
Thu Aug 3 20:45:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libconvert-ytext-perl.
commit df4e2243d1fec04256d22f83c6f10ded22ce23bc
Author: gregor herrmann <gregoa at debian.org>
Date: Thu Aug 3 16:45:01 2017 -0400
debian/rules: replace dpkg-parsechangelog call with /usr/share/dpkg/pkg-info.mk.
---
debian/rules | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index e5c618b..15d1fe7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,10 @@
%:
dh $@
-SOURCEPKG=$(shell dpkg-parsechangelog | sed -n 's/^Source: \(.*\)/\1/p')
-UPSTREAM=$(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-[^-]*/\1/p')
+include /usr/share/dpkg/pkg-info.mk
+
+SOURCEPKG=$(DEB_SOURCE)
+UPSTREAM=$(DEB_VERSION_UPSTREAM)
SHA1=$(lastword $(subst ~g, ,$(UPSTREAM)))
ORIG=${SOURCEPKG}_${UPSTREAM}.orig.tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconvert-ytext-perl.git
More information about the Pkg-perl-cvs-commits
mailing list