[mate-icon-theme-faenza] 03/04: debian/rules: Stop using dpkg-parsechangelog.

Mike Gabriel sunweaver at debian.org
Mon Feb 12 09:53:02 UTC 2018


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

sunweaver pushed a commit to branch master
in repository mate-icon-theme-faenza.

commit 6fc724d3f51f1f47027758bf436299c2b05e3b3c
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Feb 12 10:31:36 2018 +0100

    debian/rules: Stop using dpkg-parsechangelog.
---
 debian/rules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index ac8a249..dbf8a9a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,11 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/pkg-info.mk
+
 NULL =
 PKD   = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
-PKG   = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
-UVER  = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+PKG   = $(DEB_SOURCE)
+UVER  = $(shell echo $(DEB_VERSION) | cut -d "-" -f1)
 DTYPE = +dfsg1
 VER  ?= $(subst $(DTYPE),,$(UVER))
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-icon-theme-faenza.git



More information about the pkg-mate-commits mailing list