[med-svn] [plip] 05/09: Update d/rules, use DEB_VERSION instead of dpkg-parsechangelog

Alex Mestiashvili malex-guest at moszumanska.debian.org
Fri Dec 1 15:58:11 UTC 2017


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

malex-guest pushed a commit to branch master
in repository plip.

commit 63bf2b60bdb6f3733b9d3caa7efe5dd51ca74465
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date:   Fri Dec 1 15:37:44 2017 +0100

    Update d/rules, use DEB_VERSION instead of dpkg-parsechangelog
---
 debian/rules | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 5a698f9..4e67585 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,9 +4,10 @@ export PYBUILD_NAME=plip
 %:
 	dh $@ --with python2 --buildsystem=pybuild
 
+include /usr/share/dpkg/pkg-info.mk
+
 mandir := $(CURDIR)/debian/$(PYBUILD_NAME)/usr/share/man/man1
-version := $(shell dpkg-parsechangelog --show-field=Version)
-HELP2MAN := help2man --no-info --no-discard-stderr --version-string="$(version)"
+HELP2MAN := help2man --no-info --no-discard-stderr --version-string="$(DEB_VERSION)"
 PYTHON_DEFAULT_VERSION := $(shell pyversions -d)
 
 override_dh_auto_install:

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



More information about the debian-med-commit mailing list