[lucid and later meta][PATCH] UBUNTU: Allow passing version for dpkg-genchanges to dpkg-buildpackage

Herton Ronaldo Krzesinski herton.krzesinski at canonical.com
Mon Apr 16 18:30:27 UTC 2012

dpkg-genchanges includes the changelog only for the last version.
Sometimes we want to include the changes up to more previous versions,
like when packages have some version in -proposed and another version
bump happens before it goes to -updates, and we need the changelog to
contain more entries up to the previous version in -updates.

Add a LAST_VERSION variable that can be used in command line to allow
specifying a different version for dpkg-genchanges to choose what gets
included in the package changelog.

Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski at canonical.com>
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 0d18f4a..e1ad6a5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
 LOG		:= meta-source/debian/changelog
 META_VERSION	:= $(shell head -1 $(LOG)|sed 's/.*(\(.*\)).*/\1/')
 all: source
 source: clean
 	ln -s meta-source linux-meta-$(META_VERSION)
 	cd linux-meta-$(META_VERSION); \
-	dpkg-buildpackage -S -sa -rfakeroot -I.git -I.gitignore -i'\.git.*'
+	dpkg-buildpackage -S -sa -rfakeroot -I.git -I.gitignore -i'\.git.*' -v$(LAST_VERSION)
 binary: clean
 	ln -s meta-source linux-meta-$(META_VERSION)

More information about the kernel-team mailing list