Linux-KBuild Archive on
 help / color / Atom feed
From: Frans Pop <>
Cc:, Sam Ravnborg <>
Subject: [PATCH 4/5] deb-pkg: allow to specify a custom revision for .deb packages
Date: Wed, 1 Apr 2009 21:43:34 +0200
Message-ID: <> (raw)

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

Signed-off-by: Frans Pop <>
Hit "send" too early on this one :-(

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index c9a4dcd..1b8820f 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 [ -n "$KDEB_PKGVERSION" ]; then
+	packageversion=$version-$revision
+	packageversion=$KDEB_PKGVERSION
@@ -76,7 +81,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 ($packageversion) unstable; urgency=low
   * Custom built Linux kernel.

             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-01 19:43 Frans Pop [this message]
2009-04-01 21:44 ` maximilian attems
2009-04-01 22:33   ` Frans Pop

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 \ \ \ \ \ \

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

Linux-KBuild Archive on

Archives are clonable:
	git clone --mirror linux-kbuild/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-kbuild linux-kbuild/ \
	public-inbox-index linux-kbuild

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone