Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3E8CCA9C.9010502@itee.uq.edu.au> Date: Fri, 04 Apr 2003 09:58:20 +1000 From: John Williams User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: gmane.os.cygwin To: cygwin AT cygwin DOT com CC: pechtcha AT cs DOT nyu DOT edu Subject: Re: Binary patch tool? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checked: This message probably not SPAM X-Spam-Score: -1.8 X-Spam-Tests: IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG X-Spam-Report: SPAM: -1.80 hits, 8 required; SPAM: * -0.8 -- Found a In-Reply-To header SPAM: * -0.6 -- User-Agent header indicates a non-spam MUA (Mozilla) SPAM: * -0.5 -- Has a valid-looking References header SPAM: * -0.5 -- Found a User-Agent header SPAM: * -0.2 -- Found a X-Accept-Language header SPAM: * 0.8 -- BODY: Spam phrases score is 00 to 01 (low) X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang) Igor Pechtchanski wrote: > On Fri, 4 Apr 2003, John Williams wrote: > > >>Hi folks, >> >>Is there a binary equivalent to the diff/patch combination? I've >>written a little shell script to run "cmp -b" over a bunch of files (I'm >>trying to generate binary patches), but now I'm struggling with a way to >>actually apply those changes. >> >>I started writing a little tcl script to do it but think there must be a >>better way? >> >>Thanks, >>John > > > Umm, "vim -b"? vim *can* be used as a stream editor... > Igor Ah yes excellent! Even better, now I don't need to create a patch file. In a single line I can hack Xilinx's Xygwin tools over to Cygwin. I'm doing the following for f in $( find edk -name '*.exe' -o -name '*.dll' ) do vim -b -s xyg2cyg.sed $f done where xyg2cyg.sed contains :%s/xygwin1.dll/cygwin1.dll/g :wq Is there a way I can pass these on the command line, without needing a seperate little script file like this? Thanks, John -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/