aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package/builddeb
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2009-04-22 19:09:44 -0400
committerSam Ravnborg <sam@ravnborg.org>2009-06-09 16:37:37 -0400
commitc72c75db86cf9f53c4c0df6724c0cf06db017652 (patch)
treef18f6fbe325da5a7ee8f5c51e1c0cabaf879b994 /scripts/package/builddeb
parent4964451a321cfd6a05ea32af1317345c53b3ecb7 (diff)
kbuild, deb-pkg: allow to specify a custom revision for .deb packages
Allow to specify a custom revision for the generated .deb by exporting the environment variable KDEB_PKGVERSION. Signed-off-by: Frans Pop <elendil@planet.nl> Acked-by: maximilian attems <max@stro.at> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/package/builddeb')
-rw-r--r--scripts/package/builddeb7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 5eecbbe58114..5868c0f2e613 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -26,6 +26,11 @@ create_package() {
26# Some variables and settings used throughout the script 26# Some variables and settings used throughout the script
27version=$KERNELRELEASE 27version=$KERNELRELEASE
28revision=$(cat .version) 28revision=$(cat .version)
29if [ -n "$KDEB_PKGVERSION" ]; then
30 packageversion=$KDEB_PKGVERSION
31else
32 packageversion=$version-$revision
33fi
29tmpdir="$objtree/debian/tmp" 34tmpdir="$objtree/debian/tmp"
30fwdir="$objtree/debian/fwtmp" 35fwdir="$objtree/debian/fwtmp"
31packagename=linux-$version 36packagename=linux-$version
@@ -87,7 +92,7 @@ done
87name="Kernel Compiler <$(id -nu)@$(hostname -f)>" 92name="Kernel Compiler <$(id -nu)@$(hostname -f)>"
88# Generate a simple changelog template 93# Generate a simple changelog template
89cat <<EOF > debian/changelog 94cat <<EOF > debian/changelog
90linux ($version-$revision) unstable; urgency=low 95linux ($packageversion) unstable; urgency=low
91 96
92 * A standard release 97 * A standard release
93 98