patch croaks on subdirectories

Brandon S. Allbery allbery at ncoast.UUCP
Sat Sep 24 07:14:59 AEST 1988


As quoted from <200 at cvbnet2.UUCP> by news at cvbnet2.UUCP (news):
+---------------
| While trying to update perl 2.0 I ran into the following problem with patch.
| (note that perl 2.0 has several subdirectories: x2p, t, lib, eg, ...)
| 
| Any time the Index or the filenames called for a file in one of the
| subdirectories, Patch would ask me "File to patch:"
| OK so far, BUT in the case of Makefile.SH and x2p/Makefile.SH (ie, a different
| Makefile.SH in the main directory and a subdirectory), patch attempted to
| patch the original Makefile.SH when the x2p/Makefile.SH was called for. Of
| course, the patch would fail and the rejects would end up in Makefile.SH.rej.
+---------------

If you had read either (1) the patches or (2) the manual for patch, you
would have discovered the "-p" option to patch.

"When all else fails, read the manual" is a bad philosophy.  At least read
the manual BEFORE posting to the net.

++Brandon
-- 
Brandon S. Allbery, uunet!marque!ncoast!allbery			DELPHI: ALLBERY
	    For comp.sources.misc send mail to ncoast!sources-misc
"Don't discount flying pigs before you have good air defense." -- jvh at clinet.FI



More information about the Comp.sources.bugs mailing list