Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <001301c32a1e$d4e66400$78d96f83@pomello>
From: "Max Bowsher" <maxb@ukf.net>
To: "Constantine" <cnst@rbcmail.ru>
Cc: <cygwin@cygwin.com>
References: <3EDC3908.8000805@rbcmail.ru> <m3llwjzg2s.fsf@telia.com> <3EDD175B.2080809@rbcmail.ru> <009801c32a19$f094d2e0$78d96f83@pomello> <3EDD1A9F.8030401@rbcmail.ru>
Subject: Re: Why is patch(1) asking for the file names already given?
Date: Tue, 3 Jun 2003 23:24:00 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Cam-ScannerAdmin: mail-scanner-support@ucs.cam.ac.uk
X-Cam-AntiVirus: Not scanned
X-Cam-SpamDetails: 

>>>> / Constantine <cnst@rbcmail.ru> 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.

> Max Bowsher wrote:
>> Perhaps your patch file is corrupt.
>> Please post the first 10 lines of it.

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

Ah. No wonder it isn't working. 
"Normal" diffs don't store any filename information.
Use diff -u or diff -c.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

