This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why is patch(1) asking for the file names already given?

Max Bowsher wrote:

Constantine wrote:

Andrew Markebo wrote:


Just a guess, I usually throw -p1 or more, not -p0? Could it be that?


/ Constantine <> wrote:


I am trying to apply a patch I made for myself. When I am running the
patch(1) utility, I am always being asked to type in the file name to
a file that needs to be patched. My diff file contains a diff on a few
files, and this is my dialogue with the patch(1):

--- my quote start ---
>patch --ignore-whitespace -p0 -i US-GB.nohtml.diff
can't find file to patch at input line 2
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

diff -b -B --exclude='*.*htm*' -r en-US/.jar/autoconfig/contents.rdf

File to patch: en-GB/.jar/autoconfig/contents.rdf
patching file en-GB/.jar/autoconfig/contents.rdf

Perhaps your patch file is corrupt. Please post the first 10 lines of it.


--- start ---
diff -b -B --exclude='*.*htm*' -r en-US/.jar/autoconfig/contents.rdf en-GB/.jar/autoconfig/contents.rdf
< <RDF:li resource="urn:mozilla:locale:en-US"/>
> <RDF:li resource="urn:mozilla:locale:en-GB"/>
< <RDF:Description about="urn:mozilla:locale:en-US">
> <RDF:Description about="urn:mozilla:locale:en-GB">
--- end ---

I want to emphasise, that the line "diff ..." is the first one, though patch(1) is saying that it is the second one.


-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]