diff options
author | Brendan O'Dea <bod@debian.org> | 2016-05-09 16:29:06 +1000 |
---|---|---|
committer | Brendan O'Dea <bod@debian.org> | 2016-05-09 16:29:06 +1000 |
commit | d5b53ad8c6318283c94feba753daef24375d2ce6 (patch) | |
tree | 7d1642ae329c595cb230542eecf1a3f3075583a9 | |
parent | c0ec27e13654865a68babd1e5f5c5045b2ce8e03 (diff) | |
download | help2man-d5b53ad8c6318283c94feba753daef24375d2ce6.tar.gz |
Use dpkg-parsechangelog flag to extract version
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | debian/control | 2 | ||||
-rwxr-xr-x | debian/rules | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog index b3bf700..ec53b65 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,8 +4,10 @@ help2man (1.47.4) unstable; urgency=medium * Add Chinese (simplified) translation of info page (thanks to Mingye Wang). * Update Brazilian Portuguese translation (thanks to Rafael Fontenelle). * Reduce the minimum translation to 60% for info files. + * Extract version from dpkg-parsechangelog using the new flag, rather + than sed. - -- Brendan O'Dea <bod@debian.org> Mon, 09 May 2016 15:19:40 +1000 + -- Brendan O'Dea <bod@debian.org> Mon, 09 May 2016 16:05:59 +1000 help2man (1.47.3) unstable; urgency=medium diff --git a/debian/control b/debian/control index 1b22af6..f0400a5 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: devel Priority: optional Maintainer: Brendan O'Dea <bod@debian.org> Standards-Version: 3.9.6 -Build-Depends: perl (>= 5.8.0-7), debhelper (>= 8), gettext (>= 0.12.1), liblocale-gettext-perl, dpkg-dev (>= 1.16.1) +Build-Depends: perl (>= 5.8.0-7), debhelper (>= 8), gettext (>= 0.12.1), liblocale-gettext-perl, dpkg-dev (>= 1.17.0) Vcs-Git: git://anonscm.debian.org/users/bod/help2man.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/bod/help2man.git diff --git a/debian/rules b/debian/rules index ea676e6..2fd9175 100755 --- a/debian/rules +++ b/debian/rules @@ -81,7 +81,7 @@ AM_DIR = $(shell ls -d /usr/share/automake* 2>/dev/null | tail -1) VERSION = $(shell ./help2man.PL --version) maint-prep: test -n $(AM_DIR) - test `dpkg-parsechangelog | sed -n 's/^Version:\s\+//p'` = $(VERSION) + test `dpkg-parsechangelog --show-field=Version` = $(VERSION) cp $(addprefix $(AM_DIR)/,$(AM_DOC)) . cp $(addprefix $(AM_DIR)/,$(AM_AUX)) build-aux (echo " README for GNU help2man version $(VERSION)"; \ |