Path: utzoo!attcan!uunet!wyse!vsi1!ames!mailrus!purdue!gatech!cwjcc!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon S. Allbery) Newsgroups: comp.sources.bugs Subject: Re: patch croaks on subdirectories Message-ID: <12602@ncoast.UUCP> Date: 23 Sep 88 21:14:59 GMT References: <200@cvbnet2.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon S. Allbery) Followup-To: comp.sources.bugs Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 24 As quoted from <200@cvbnet2.UUCP> by news@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@clinet.FI