It is currently Thu, 08 Jun 2023 12:31:47 GMT

Author Message
 Patch won't find files to patch in subdirs
I have patch version 2.12.  I go to the top level directory of some
pd program, say cap 6.0, and try to do a:
patch <cap60.patch030
It sees the lines:
*** etc/atis.c.orig    Wed May 29 22:44:18 1991
--- etc/atis.c         Sat Jul  6 02:27:24 1991
But still prompts me for the file to patch!
"etc" is a subdir of the current directory and contains the file atis.c.
What am I doing wrong?  It's tedious to type in the full path to the file,
especially when patch just scanned past it!
This doesn't happen when everything is thrown into one directory .. then it
finds all the files to patch automatically.

Any help much appreciated!


 Wed, 26 Jan 1994 11:24:31 GMT   
 Patch won't find files to patch in subdirs
From patch(1):

          sets the pathname strip count, which controls how path-
          names  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 speci-
          fies how many slashes are to be stripped from the front
          of the pathname.  (Any intervening directory names also
          go away.) For example, supposing the  filename  in  the
          patch file was


          setting -p or -p0 gives the entire pathname unmodified,
          -p1 gives


          without the leading slash, -p4 gives


          and not specifying -p at all just gives you "blurfl.c".
          Whatever  you  end  up with is looked for either in the
          current directory, or the directory specified by the -d

Jonathan Kamens                                 j...@CATS.UCSC.EDU

 Sat, 29 Jan 1994 09:36:47 GMT   
   [ 2 post ] 

Similar Threads

1. KDE won't start now I've installed kernel patch 2.2.9

2. Patches, patches and more patches

3. Patches, Patches, Patches

4. Patches Patches Patches

5. obsoleted patch references in kernel patch README file

6. util-linux patch inside int'l kernel patch

7. How to patch an already patched file?

8. How do I patch a patched file?

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software