lkml.org 
[lkml]   [1998]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectbzip2 patches
Hi!

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
\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.059 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site