[debian-edu-commits] debian-edu/pkg-team/ 06/08: debian/rules: Stop using dpkg-parsechangelog, use pkg-info.mk instead.

Mike Gabriel sunweaver at debian.org
Thu Mar 1 13:23:17 UTC 2018


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

sunweaver pushed a commit to branch master
in repository gosa.

commit 55fa638cf4253d688f3c455965d259b0884768f9
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Thu Mar 1 14:18:04 2018 +0100

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

diff --git a/debian/rules b/debian/rules
index adafaff..608d829 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,10 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/pkg-info.mk
+
 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    = +reloaded3
 VER     ?= $(subst $(DTYPE),,$(UVER))
 PLUGINS  = $(shell ls debian/watch.* | cut -d "." -f2 | sed -e 's/gosa-//')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git



More information about the debian-edu-commits mailing list