[Python-modules-commits] [htmlmin] 01/07: d/rules: simplify version handling in man generation.
Adrian Vondendriesch
discostu-guest at moszumanska.debian.org
Fri May 12 14:03:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
discostu-guest pushed a commit to branch master
in repository htmlmin.
commit 2c28f22b6dbb51e2ded4d1a673b0aac78e092d46
Author: Adrian Vondendriesch <adrian.vondendriesch at credativ.de>
Date: Fri May 12 15:11:04 2017 +0200
d/rules: simplify version handling in man generation.
---
debian/rules | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/debian/rules b/debian/rules
index a71a481..4602dfb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,6 @@
#!/usr/bin/make -f
-
-DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog \
- | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p')
+include /usr/share/dpkg/pkg-info.mk
export PYBUILD_NAME=htmlmin
%:
@@ -23,7 +21,7 @@ override_dh_auto_install:
override_dh_installman:
mkdir -p debian/htmlmin/usr/share/man/man1/
- PYTHONPATH=. help2man --version-string $(DEB_UPSTREAM_VERSION) \
+ PYTHONPATH=. help2man --version-string $(DEB_VERSION_UPSTREAM) \
--no-info \
--name "htmlmin is a configurable HTML Minifier with safety features." \
debian/htmlmin/usr/bin/htmlmin > \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/htmlmin.git
More information about the Python-modules-commits
mailing list