Date: Mon, 2 Nov 1998 15:30:55 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Michael Schuster cc: djgpp AT delorie DOT com Subject: Re:patch- another problem In-Reply-To: <363D8802.D6BE8F05@eev.e-technik.uni-erlangen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Mon, 2 Nov 1998, Michael Schuster wrote: > I've got a patch file, the sources to patch and don't know how to start > the patching - I've downloaded already the docs but can't come along > with them. > diff -c cross gnu/binutils/README-C4X:1.2 > *** cross Fri Sep 18 19:12:30 1998 > --- gnu/binutils/README-C4X Wed Jul 16 23:16:59 1997 [snip] > My sources are in gnu/binutils, and I want them to be written to the > cross-dir or at least just modify the sources but I can't get it > working. Whoever created the diffs did a bad job, because these diffs work against the heuristics inside `patch' that deduces which file do you want to patch. (The reason why is a long story, but it's all in the docs.) So you will have to tell it explicitly where the file is and where to put the patched version: patch -p0 -b -o cross/gnu/binutils/README-C4X gnu/binutils/README-C4X < patches-file This assumes that the patched file goes to the cross/gnu/binutils directory. The above command should be issued *after* you chdir to the directory that is the parent of gnu.