Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!pyramid!pesnta!hplabs!hpda!hpisoa2!hpitg!hoptoad!gnu@hoptoad From: gnu%hoptoad@hoptoad.UUCP Newsgroups: net.emacs Subject: Re: .el code to merge GNU diffs -- Message-ID: <763@hoptoad> Date: Mon, 5-May-86 13:03:00 EDT Article-I.D.: hoptoad.763 Posted: Mon May 5 13:03:00 1986 Date-Received: Sun, 11-May-86 16:32:55 EDT Lines: 18 Subject: Re: .el code to merge GNU diffs -- obsoleted by "patch" In article <11230003@acf8.UUCP>, schwrtze@acf8.UUCP (E. Schwartz group) writes: > Here is a .el program I wrote to work on a dist directory and provided diffs > it will make the changes to the appropriate source files. > No modifications to the source since THis method will > fail because it uses absolute line numbers. > is there an easier way? Yes, there is a much easier way. Larry Wall wrote a public domain program called "patch" which takes a set of diffs (preferably context diffs) and applies them to source files, whether or not you've made a few local changes. It does most of what you as a human would do, looking to see where the lines being patched have moved a little and adjusting the new lines appropriately. If you don't have "patch", get it from the mod.sources archive. It's great. -- John Gilmore {sun,ptsfa,lll-crg,ihnp4}!hoptoad!gnu jgilmore@lll-crg.arpa