LKML Archive on
help / color / mirror / Atom feed
From: Frans Pop <>
Subject: [PATCH] kbuild: allow to specify a custom revision for .deb packages
Date: Wed, 13 Feb 2008 11:18:11 +0100	[thread overview]
Message-ID: <> (raw)

From: Frans Pop <>

Allow to specify a custom revision for the generated .deb package
by exporting the environment variable KERNELDEBREVISION.

Signed-off-by: Frans Pop <>

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index ba6bf5d..2577dec 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -14,6 +14,11 @@ set -e
 # Some variables and settings used throughout the script
 revision=`cat .version`
+if [ x"$KERNELDEBREVISION" = x ]; then
+	debrevision=$version-$revision
@@ -66,7 +71,7 @@ done
 name="Kernel Compiler <$(id -nu)@$(hostname -f)>"
 # Generate a simple changelog template
 cat <<EOF > debian/changelog
-linux ($version-$revision) unstable; urgency=low
+linux ($debrevision) unstable; urgency=low
   * A standard release

             reply	other threads:[~2008-02-13 10:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-13 10:18 Frans Pop [this message]
2008-02-13 11:42 ` [PATCH] kbuild: allow alternative hook script dir in " Frans Pop
2008-02-15 12:46   ` Sam Ravnborg
2008-02-15 12:45 ` [PATCH] kbuild: allow to specify a custom revision for " Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: [PATCH] kbuild: allow to specify a custom revision for .deb packages' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).