[med-svn] [yaggo] 06/07: d/rules: do not parse d/changelog

Andreas Tille tille at debian.org
Thu Oct 5 20:30:49 UTC 2017


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

tille pushed a commit to branch master
in repository yaggo.

commit 782c3f8e0071ce8cbaaee73230100c648b09e042
Author: Andreas Tille <tille at debian.org>
Date:   Thu Oct 5 22:08:53 2017 +0200

    d/rules: do not parse d/changelog
---
 debian/changelog |  1 +
 debian/rules     | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 862868f..5395bcb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ yaggo (1.5.10-1) unstable; urgency=medium
   * Moved packaging from SVN to Git
   * Standards-Version: 4.1.1
   * Fix install
+  * d/rules: do not parse d/changelog
 
  -- Andreas Tille <tille at debian.org>  Thu, 05 Oct 2017 22:03:35 +0200
 
diff --git a/debian/rules b/debian/rules
index b5d0797..93b51d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,9 @@
 #!/usr/bin/make -f
 
-pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
-version=$(shell dpkg-parsechangelog | grep Version: | cut -f2 -d' ' | cut -f1 -d- )
-mandir=$(CURDIR)/debian/$(pkg)/usr/share/man/man1/
-HELP2MAN = help2man --no-info --version-string="$(version)"
+include /usr/share/dpkg/default.mk
+
+mandir=$(CURDIR)/debian/$(DEB_SOURCE)/usr/share/man/man1/
+HELP2MAN = help2man --no-info --version-string="$(DEB_VERSION_UPSTREAM)"
 
 %:
 	dh $@
@@ -12,4 +12,4 @@ override_dh_installman:
 	mkdir -p $(mandir)
 	$(HELP2MAN) \
 		--name='generate command line parser using getopt_long' \
-		$(CURDIR)/$(pkg) > $(mandir)/$(pkg).1
+		$(CURDIR)/$(DEB_SOURCE) > $(mandir)/$(DEB_SOURCE).1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/yaggo.git



More information about the debian-med-commit mailing list