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

Message ID 1334601027-8262-3-git-send-email-herton.krzesinski@canonical.com
State New
Headers show

Commit Message

Herton Ronaldo Krzesinski April 16, 2012, 6:30 p.m.
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@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)