LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] kbuild: allow to specify a custom revision for .deb packages
@ 2008-02-13 10:18 Frans Pop
  2008-02-13 11:42 ` [PATCH] kbuild: allow alternative hook script dir in " Frans Pop
  2008-02-15 12:45 ` [PATCH] kbuild: allow to specify a custom revision for " Sam Ravnborg
  0 siblings, 2 replies; 4+ messages in thread
From: Frans Pop @ 2008-02-13 10:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: sam

From: Frans Pop <elendil@planet.nl>

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

Signed-off-by: Frans Pop <elendil@planet.nl>

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
 version=$KERNELRELEASE
 revision=`cat .version`
+if [ x"$KERNELDEBREVISION" = x ]; then
+	debrevision=$version-$revision
+else
+	debrevision=$KERNELDEBREVISION
+fi
 tmpdir="$objtree/debian/tmp"
 packagename=linux-$version
 
@@ -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
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-15 12:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-13 10:18 [PATCH] kbuild: allow to specify a custom revision for .deb packages Frans Pop
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

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).