Path: utzoo!attcan!uunet!husc6!mailrus!ames!elroy!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.sources.d Subject: Re: how to make a patch for hierarchy? Keywords: patch, diff Message-ID: <2480@jpl-devvax.JPL.NASA.GOV> Date: 19 Jul 88 00:20:59 GMT References: <12041@duke.cs.duke.edu> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA. Lines: 17 In article <12041@duke.cs.duke.edu> dfk@dukvlsi2.cs.duke.edu (David F. Kotz) writes: : I have a program whose sources are arranged in a tree of directories. : I made some changes, and I want to make a "patch" to distribute the : changes. How does one go about making a patch file for this situation? Patch can patch files in subdirectories as long as two conditions hold: 1) You generate the patch such that the subdirectories are included as part of the filenames on the *** or --- lines of a context diff, or an Index: line with other kinds of diffs. (It looks like your diff file satisfied this condition.) 2) The person applying the patch has to say "patch -p" to tell patch to pay attention to the pathnames. (I think this is all you needed.) Larry Wall lwall@jpl-devvax.jpl.nasa.gov