updated 'patch-kernel

From: Adam (adam@eax.com)
Date: Wed Mar 15 2000 - 00:45:46 EST


comments?

I think there's no point to add support to automatic patching
of the extraversion kernels as the naming is so inconsistent.

another thing is the jump from 51 to 99 n the sublevel
from the 2.3.51 to 2.3.99-pre1

-----------------------------------------------------------------------
--- patch-kernel-backup Wed Mar 15 00:15:11 2000
+++ patch-kernel Wed Mar 15 00:38:43 2000
@@ -27,14 +27,22 @@
 stopvers=${3-imnotaversion}
 
 # set current VERSION, PATCHLEVEL, SUBLEVEL
-eval `sed -n 's/^\([A-Z]*\) = \([0-9]*\)$/\1=\2/p' $sourcedir/Makefile`
+eval `head -4 $sourcedir/Makefile | sed -e 's/ //g'`
 if [ -z "$VERSION" -o -z "$PATCHLEVEL" -o -z "$SUBLEVEL" ]
 then
     echo "unable to determine current kernel version" >&2
     exit 1
 fi
 
-echo "Current kernel version is $VERSION.$PATCHLEVEL.$SUBLEVEL"
+echo -n "Current kernel version is $VERSION.$PATCHLEVEL.$SUBLEVEL"
+if [ -n "$EXTRAVERSION" ];
+then
+ echo "$EXTRAVERSION"
+ echo "unable to cope with 'extraversion' kernels" >&2
+ exit 1
+else
+ echo ""
+fi
 
 while :
 do
-----------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:29 EST