debian/rules: Use dpkg-parsechangelog -S option to select fields

This commit is contained in:
Ben Hutchings 2016-12-18 02:26:21 +00:00
parent e0ceefaa07
commit 6b6dd902ca
2 changed files with 3 additions and 2 deletions

1
debian/changelog vendored
View File

@ -169,6 +169,7 @@ linux (4.8.15-1) UNRELEASED; urgency=medium
* debian/rules.real: Exclude *.pyc from featureset diffs
* debian/control: Fix build-dependency on flex to work with new versions that
have M-A: foreign
* debian/rules: Use dpkg-parsechangelog -S option to select fields
-- Uwe Kleine-König <ukleinek@debian.org> Sun, 04 Dec 2016 21:16:06 +0100

4
debian/rules vendored
View File

@ -2,8 +2,8 @@
SHELL := sh -e
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p')
VERSION := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p')
SOURCE := $(shell dpkg-parsechangelog -SSource)
VERSION := $(shell dpkg-parsechangelog -SVersion)
VERSION_UPSTREAM := $(shell echo "$(VERSION)" | sed -e 's,-[^-]*$$,,')
VERSION_BINNMU := $(shell echo "$(VERSION)" | sed -ne 's,.*+b\(.*\)$$,\1,p')