From patchwork Mon Apr 16 18:30:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [lucid, and, later, meta] UBUNTU: Allow passing version for dpkg-genchanges to dpkg-buildpackage Date: Mon, 16 Apr 2012 08:30:27 -0000 From: Herton Ronaldo Krzesinski X-Patchwork-Id: 152967 Message-Id: <1334601027-8262-3-git-send-email-herton.krzesinski@canonical.com> To: kernel-team@lists.ubuntu.com 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 --- 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/') +LAST_VERSION ?= $(META_VERSION) 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)