diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2011-09-21 22:44:00 +0200 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2011-09-21 22:44:00 +0200 |
commit | cfba9b80fea680d561671713b78044c365a14924 (patch) | |
tree | 885c1a5e1f14484c7bddd2a302541d329a5cba9e /scripts/mk | |
parent | c10517e66a9d62b4a2be9b08f7d3f42378c46ff9 (diff) | |
download | dpkg-cfba9b80fea680d561671713b78044c365a14924.tar.gz |
scripts/mk/pkg-info.mk: DEB_DISTRIBUTION returns all listed distributions
Update DEB_DISTRIBUTION to return all distributions listed in the current
changelog entry instead of only the first one.
Diffstat (limited to 'scripts/mk')
-rw-r--r-- | scripts/mk/pkg-info.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mk/pkg-info.mk b/scripts/mk/pkg-info.mk index 69b71644f..1f385f95e 100644 --- a/scripts/mk/pkg-info.mk +++ b/scripts/mk/pkg-info.mk @@ -5,7 +5,7 @@ # DEB_VERSION_EPOCH_UPSTREAM: the package's version without the Debian revision # DEB_VERSION_UPSTREAM_REVISION: the package's version without the Debian epoch # DEB_VERSION_UPSTREAM: the package's upstream version -# DEB_DISTRIBUTION: the first distribution of the current entry in debian/changelog +# DEB_DISTRIBUTION: the distribution(s) listed in the current entry of debian/changelog dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1))) @@ -14,4 +14,4 @@ DEB_VERSION = $(call dpkg_late_eval,DEB_VERSION,dpkg-parsechangelog | awk '/^Ver DEB_VERSION_EPOCH_UPSTREAM = $(call dpkg_late_eval,DEB_VERSION_EPOCH_UPSTREAM,echo '$(DEB_VERSION)' | sed -e 's/-[^-]*$$//') DEB_VERSION_UPSTREAM_REVISION = $(call dpkg_late_eval,DEB_VERSION_UPSTREAM_REVISION,echo '$(DEB_VERSION)' | sed -e 's/^[0-9]*://') DEB_VERSION_UPSTREAM = $(call dpkg_late_eval,DEB_VERSION_UPSTREAM,echo '$(DEB_VERSION_EPOCH_UPSTREAM)' | sed -e 's/^[0-9]*://') -DEB_DISTRIBUTION = $(call dpkg_late_eval,DEB_DISTRIBUTION,dpkg-parsechangelog | awk '/^Distribution: / { print $$2 }') +DEB_DISTRIBUTION = $(call dpkg_late_eval,DEB_DISTRIBUTION,dpkg-parsechangelog | sed -n -e '/^Distribution: / { s/^Distribution: //; p }') |