Since ftp.kernel.org now has bzip2ed kernel patches, which save space and
download time, I felt obliged to to modify the script patch-kernel
appropriate. It looks now for a gziped patch, and if not found tries a
bzip2ed patch.
Bernd Paysan !!! New Homepage Location !!!
"Late answers are wrong answers!" !!! New E-Mail Address !!!
http://www.jwdt.com/~paysan/ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
--- linux/scripts/patch-kernel~ Tue Mar 26 20:22:14 1996
+++ linux/scripts/patch-kernel Fri Jan 16 22:24:52 1998
@@ -29,14 +29,24 @@
while :
do
SUBLEVEL=`expr $SUBLEVEL + 1`
- patch=patch-$VERSION.$PATCHLEVEL.$SUBLEVEL.gz
+ patch=patch-$VERSION.$PATCHLEVEL.$SUBLEVEL
+
+ if [ -r $patchdir/$patch.gz ]
+ then
+ patch=$patch.gz
+ xtract=gunzip
+ else
+ patch=$patch.bz2
+ xtract=bzip2
+ fi
+
if [ ! -r $patchdir/$patch ]
then
break
fi
echo -n "Applying $patch... "
- if gunzip -dc $patchdir/$patch | patch -p1 -s -N -E -d $sourcedir
+ if $xtract -dc $patchdir/$patch | patch -p1 -s -N -E -d $sourcedir
then
echo "done."
else