diff options
author | Frans Pop <elendil@planet.nl> | 2009-04-22 19:09:44 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-06-09 16:37:37 -0400 |
commit | c72c75db86cf9f53c4c0df6724c0cf06db017652 (patch) | |
tree | f18f6fbe325da5a7ee8f5c51e1c0cabaf879b994 /scripts | |
parent | 4964451a321cfd6a05ea32af1317345c53b3ecb7 (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')
-rw-r--r-- | scripts/package/builddeb | 7 |
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 |
27 | version=$KERNELRELEASE | 27 | version=$KERNELRELEASE |
28 | revision=$(cat .version) | 28 | revision=$(cat .version) |
29 | if [ -n "$KDEB_PKGVERSION" ]; then | ||
30 | packageversion=$KDEB_PKGVERSION | ||
31 | else | ||
32 | packageversion=$version-$revision | ||
33 | fi | ||
29 | tmpdir="$objtree/debian/tmp" | 34 | tmpdir="$objtree/debian/tmp" |
30 | fwdir="$objtree/debian/fwtmp" | 35 | fwdir="$objtree/debian/fwtmp" |
31 | packagename=linux-$version | 36 | packagename=linux-$version |
@@ -87,7 +92,7 @@ done | |||
87 | name="Kernel Compiler <$(id -nu)@$(hostname -f)>" | 92 | name="Kernel Compiler <$(id -nu)@$(hostname -f)>" |
88 | # Generate a simple changelog template | 93 | # Generate a simple changelog template |
89 | cat <<EOF > debian/changelog | 94 | cat <<EOF > debian/changelog |
90 | linux ($version-$revision) unstable; urgency=low | 95 | linux ($packageversion) unstable; urgency=low |
91 | 96 | ||
92 | * A standard release | 97 | * A standard release |
93 | 98 | ||