From patchwork Wed Apr 22 23:09:44 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Pop X-Patchwork-Id: 19446 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3MN8b5j031480 for ; Wed, 22 Apr 2009 23:09:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751760AbZDVXJs (ORCPT ); Wed, 22 Apr 2009 19:09:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751732AbZDVXJs (ORCPT ); Wed, 22 Apr 2009 19:09:48 -0400 Received: from Cpsmtpm-eml110.kpnxchange.com ([195.121.3.14]:51158 "EHLO CPSMTPM-EML110.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751192AbZDVXJr (ORCPT ); Wed, 22 Apr 2009 19:09:47 -0400 Received: from aragorn.fjphome.nl ([84.85.147.182]) by CPSMTPM-EML110.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Thu, 23 Apr 2009 01:09:46 +0200 From: Frans Pop To: linux-kbuild@vger.kernel.org Subject: [PATCH 5/14] deb-pkg: allow to specify a custom revision for .deb packages Date: Thu, 23 Apr 2009 01:09:44 +0200 User-Agent: KMail/1.9.9 Cc: Sam Ravnborg , maximilian attems , Andres Salomon References: <200904230034.59627.elendil@planet.nl> In-Reply-To: <200904230034.59627.elendil@planet.nl> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200904230109.45989.elendil@planet.nl> X-OriginalArrivalTime: 22 Apr 2009 23:09:46.0233 (UTC) FILETIME=[6D92E690:01C9C39F] Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Allow to specify a custom revision for the generated .deb by exporting the environment variable KDEB_PKGVERSION. Signed-off-by: Frans Pop Cc: maximilian attems Cc: Andres Salomon --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 5eecbbe..5868c0f 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -26,6 +26,11 @@ create_package() { # Some variables and settings used throughout the script version=$KERNELRELEASE revision=$(cat .version) +if [ -n "$KDEB_PKGVERSION" ]; then + packageversion=$KDEB_PKGVERSION +else + packageversion=$version-$revision +fi tmpdir="$objtree/debian/tmp" fwdir="$objtree/debian/fwtmp" packagename=linux-$version @@ -87,7 +92,7 @@ done name="Kernel Compiler <$(id -nu)@$(hostname -f)>" # Generate a simple changelog template cat < debian/changelog -linux ($version-$revision) unstable; urgency=low +linux ($packageversion) unstable; urgency=low * A standard release