From patchwork Mon Apr 16 18:30:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herton Ronaldo Krzesinski X-Patchwork-Id: 152967 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 84B65B7022 for ; Tue, 17 Apr 2012 04:30:50 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SJqhH-0004xl-LC; Mon, 16 Apr 2012 18:30:43 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SJqhF-0004x9-NJ for kernel-team@lists.ubuntu.com; Mon, 16 Apr 2012 18:30:41 +0000 Received: from [189.115.83.138] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SJqhF-0001OX-4k for kernel-team@lists.ubuntu.com; Mon, 16 Apr 2012 18:30:41 +0000 From: Herton Ronaldo Krzesinski To: kernel-team@lists.ubuntu.com Subject: [lucid and later meta][PATCH] UBUNTU: Allow passing version for dpkg-genchanges to dpkg-buildpackage Date: Mon, 16 Apr 2012 15:30:27 -0300 Message-Id: <1334601027-8262-3-git-send-email-herton.krzesinski@canonical.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1334601027-8262-1-git-send-email-herton.krzesinski@canonical.com> References: <1334601027-8262-1-git-send-email-herton.krzesinski@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@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)