Re: patch(1)ing (was Re: Problem with 2.0.20)
Harald Koenig (koenig@tat.physik.uni-tuebingen.de)
Mon, 16 Sep 1996 09:20:38 +0200 (MET DST)
> What I always do is just go into the directory I'm patching and use `patch
> -p1`. That way it doesn't care at all what the directory prefix is for
> either the original or patched trees. Works all the time (unless whoever
> made the patch used some weird method to create the patch...)
>
> For instance, my script to extract a guaranteed clean version of the
> latest kernel tree from my archive of linux-2.0.tar.gz and patch-2.0.*.gz:
ever seen the script linux/scripts/patch-kernel ?
tar -xzf linux-2.0.tar.gz
linux/scripts/patch-kernel linux ..
should be equivalent to your script and it even does some error checking...
Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^