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

commit 1bb2721e97acc62f18a29cc9be699595af71e151
Author: Michel Hermier <herm...@frugalware.org>
Date:   Tue Aug 16 23:14:36 2011 +0200

kernel.sh: Fix with new numbering style.

* Instead of replacing SUBLEVEL with 0, replace it with empty string.

diff --git a/source/include/kernel.sh b/source/include/kernel.sh
index ae212e4..14396ff 100644
--- a/source/include/kernel.sh
+++ b/source/include/kernel.sh
@@ -248,9 +248,10 @@ Fbuildkernel()
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"
+                       Fsed "SUBLEVEL =.*" "SUBLEVEL =" Makefile
+               else
+                       Fsed "SUBLEVEL =.*" "SUBLEVEL = ${_F_kernel_ver#*.*.}" 
Makefile
fi
-               Fsed "SUBLEVEL =.*" "SUBLEVEL = ${_F_kernel_ver#*.*.}" Makefile
Fsed "EXTRAVERSION =.*" "EXTRAVERSION = $_F_kernel_uname" Makefile
else
make include/config/kernel.release
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to