Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=kernel30.git;a=commitdiff;h=3a73ac08128768fdfda618de697623de02713da1

commit 3a73ac08128768fdfda618de697623de02713da1
Author: Michel Hermier <herm...@frugalware.org>
Date:   Sun Aug 14 10:48:01 2011 +0200

kernel.sh

* Add some work around to handle prettily the new kernel version
numbering.

diff --git a/source/include/kernel-version.sh b/source/include/kernel-version.sh
index 20ed074..8be0bd8 100644
--- a/source/include/kernel-version.sh
+++ b/source/include/kernel-version.sh
@@ -15,8 +15,7 @@
# * _F_kernelver_rel: the kernel release
# * _F_kernelver_stable: the number of the -stable patch to use (if any)
###
-pkgver=3.0
-_F_kernelver_ver=3.0.0
+_F_kernelver_ver=3.0
_F_kernelver_rel=1
_F_kernelver_stable=1

diff --git a/source/include/kernel.sh b/source/include/kernel.sh
index dd7c95d..ae212e4 100644
--- a/source/include/kernel.sh
+++ b/source/include/kernel.sh
@@ -246,6 +246,10 @@ Fbuildkernel()
yes "" | make config

if [ $_F_kernel_dontfakeversion -eq 0 ]; then
+               if [ "${_F_kernel_ver#*.*.}" = "$_F_kernel_ver" ]; then
+                       # If patten match fails, sublevel version is missing
+                       _F_kernel_ver="$_F_kernel_ver.0"
+               fi
Fsed "SUBLEVEL =.*" "SUBLEVEL = ${_F_kernel_ver#*.*.}" Makefile
Fsed "EXTRAVERSION =.*" "EXTRAVERSION = $_F_kernel_uname" Makefile
else
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to