diff mbox

[hardy,meta] UBUNTU: Allow passing version for dpkg-genchanges to dpkg-buildpackage

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

Commit Message

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

Patch

diff --git a/Makefile b/Makefile
index 7b73b19..b6a2707 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@ 
 LOG		:= meta-source/debian/changelog
 META_VERSION	:= $(shell head -1 $(LOG)|sed 's/.*(\(.*\)).*/\1/')
+LAST_VERSION	?= $(META_VERSION)
 
 all: source
 
 source: clean
 	ln -s meta-source linux-$(META_VERSION)
 	cd linux-$(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_VERSION)