Path: utzoo!attcan!uunet!husc6!uwvax!rutgers!mcnc!duke!dukvlsi2!dfk From: dfk@dukvlsi2.cs.duke.edu (David F. Kotz) Newsgroups: comp.sources.d Subject: how to make a patch for hierarchy? Keywords: patch, diff Message-ID: <12041@duke.cs.duke.edu> Date: 18 Jul 88 16:27:01 GMT Sender: news@duke.cs.duke.edu Lines: 20 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? If the original is in old/ and the new version is in new/, I tried cd new diff -c -r ../old . > ../patchfile but patch (applied with (cd old; patch <../patchfile) complained whenever a file in a subdirectory was changed; it prompted for the name of the file to patch. Is this impossible? Do I need to flatten the tree? David Kotz Department of Computer Science, Duke University, Durham, NC 27706 ARPA: dfk@cs.duke.edu CSNET: dfk@duke UUCP: decvax!duke!dfk