linux/scripts/patch-kernel needs patch after 1.3.100

Andreas Koppenhoefer (koppenas@koppenas.dialup.informatik.uni-stuttgart.de)
13 May 1996 11:52:45 +0200


You're patching kernels by running linux/scripts/patch-kernel? Then
you need this patch to be prepared for Linus' new patch file naming
scheme and patchlevel change.

Patch file sequence and file naming is:
...
1.3.99 -> patch-1.3.99
1.3.100 -> patch-1.3.100
1.99.1 -> patch-pre2.0.1
1.99.2 -> patch-pre2.0.2
...
1.99.xx -> patch-pre2.0.xx (the very last patch of 1.99.)
2.0.0 -> patch-pre2.0.0 (maybe it will be 2.0.1? Linus?)

Linus: in case you're adding this little patch to one of then next
releases, please check the rules against what you've in mind.

--- linux-1.3.100/scripts/patch-kernel Tue Apr 9 19:27:42 1996
+++ linux/scripts/patch-kernel Mon May 13 10:46:26 1996
@@ -28,8 +28,19 @@

while :
do
- SUBLEVEL=`expr $SUBLEVEL + 1`
- patch=patch-$VERSION.$PATCHLEVEL.$SUBLEVEL.gz
+ # generate name of next patch file - first check margins...
+ case $VERSION.$PATCHLEVEL.$SUBLEVEL in
+ 1.3.100) PATCHLEVEL=99 SUBLEVEL=1 ;;
+ 1.99.xx) # Linus, please fix this 'xx' in the last 1.99.xx patchfile!
+ VERSION=2 PATCHLEVEL=0 SUBLEVEL=0 ;;
+ *) SUBLEVEL=`expr $SUBLEVEL + 1` ;;
+ esac
+ if [ $PATCHLEVEL = 99 ]; then
+ patch=patch-pre`expr $VERSION + 1`.0.$SUBLEVEL.gz
+ else
+ patch=patch-$VERSION.$PATCHLEVEL.$SUBLEVEL.gz
+ fi
+
if [ ! -r $patchdir/$patch ]
then
break

- Andreas

PS: This mail is not PGP signed, because PGP would break patch file
integrity ('-' at the beginning of a line gets translated to '- -').

-- 
Andreas Koppenhoefer, Student der Universitaet Stuttgart, BR Deutschland 
<koppenas@informatik.uni-stuttgart.de>, <akoppenhoefer@schweinfurt.netsurf.de>
Franz-Schubert-Str. 2, 97616 Bad Neustadt, Germany, +49 9771 7943 (9-21h MEZ)