lkml.org 
[lkml]   [1996]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: patch(1)ing (was Re: Problem with 2.0.20)
Date
> 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 ^^^^^ ^^^^^

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.078 / U:3.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site