debian/rules.real: Use dpkg-parsechangelog -S

This option is supported since dpkg 1.17 (i.e. jessie) and allows a
nice little clean-up.

svn path=/dists/trunk/linux/; revision=22852
This commit is contained in:
Ben Hutchings 2015-07-24 20:49:22 +00:00
parent 1617b3f14e
commit 42b6cc2f10
2 changed files with 3 additions and 2 deletions

1
debian/changelog vendored
View File

@ -6,6 +6,7 @@ linux (4.1.3-1~exp1) UNRELEASED; urgency=medium
[ Ben Hutchings ]
* [armel/kirkwood] ubi: Change UBIFS_FS and MTD_UBI from built-in to
modules, to reduce kernel image size (fixes FTBFS)
* debian/rules.real: Use dpkg-parsechangelog -S
[ Ian Campbell ]
* [armhf] Set CONFIG_ARM_TEGRA_CPUFREQ as builtin.

4
debian/rules.real vendored
View File

@ -13,8 +13,8 @@ DEB_HOST_MULTIARCH:= $(shell dpkg-architecture -a'$(ARCH)' -qDEB_HOST_MULTIARCH)
DEB_BUILD_ARCH := $(shell dpkg-architecture -a'$(ARCH)' -qDEB_BUILD_ARCH)
endif
MAINTAINER := $(shell sed -ne 's,^Maintainer: .[^<]*<\([^>]*\)>,\1,p' debian/control)
DISTRIBUTION := $(shell dpkg-parsechangelog | sed -ne 's,^Distribution: ,,p')
SOURCE_DATE := $(shell dpkg-parsechangelog | sed -ne 's,^Date: ,,p')
DISTRIBUTION := $(shell dpkg-parsechangelog -SDistribution)
SOURCE_DATE := $(shell dpkg-parsechangelog -SDate)
SOURCE_DATE_UTC_ISO := $(shell date -u -d '$(SOURCE_DATE)' +%Y-%m-%d)
DISTRIBUTOR := $(shell lsb_release -is 2>/dev/null)