[lkml]   [1996]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Problem with 2.0.20
On Sun, 15 Sep 1996, Adam D. Bradley wrote:

> BTW, are we both missing something here? Is there a command-line opt (or
> another version) of patch that creates new files in the right places?

patch -p0

Excerpt from the patch man page:

-p[number], --strip[=number]
sets the pathname strip count, which controls how
pathnames found in the patch file are treated, in
case the you keep your files in a different directory
than the person who sent out the patch. The strip
count specifies how many slashes are to be stripped
from the front of the pathname. (Any intervening
directory names also go away.) For example, suppos-
ing the file name in the patch file was


setting -p or -p0 gives the entire pathname unmodi-
fied, -p1 gives


without the leading slash, -p4 gives


and not specifying -p at all just gives you
"blurfl.c", unless all of the directories in the
leading path (u/howard/src/blurfl) exist and that
path is relative, in which case you get the entire
pathname unmodified. Whatever you end up with is
looked for either in the current directory, or the
directory specified by the -d option.

William E. Roadcap
TITUS Software
Waynesboro, Va (USA)

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