[news.software.b] Applying news source patches

samperi@dasys1.UUCP (Dominick Samperi) (12/10/87)

I'm sure this question has been asked before, and I regret having to ask
again, but can someone explain how to apply the 14 patches that have been
posted for the news software? I have a patch program that was posted, but
the docs seem to say that you must explicitly patch each source file
separately.

A few words about the meaining of 'ed diffs', 'context diffs', etc. would
also be greatly appreciated.

Thanks.

-- 
	Dominick Samperi, Manhattan College, New York, NY
		...!ihnp4!cmcl2!manhat!samperi
		...!ihnp4!cmcl2!phri!dasys1!samperi

billw@killer.UUCP (Bill Wisner) (12/11/87)

If you have the patch program by Larry Wall, patching is simple: cd to the
directory where you have the news sources, and say "patch < filename-of-patch".
The patch program (lwall's, anyway) automatically patches each file that is
referenced in the patch file.

Ed diffs are generated by SysV's diff program; they are basically ed input.
Context diffs are much preferred by patch; these include several lines to
either side of the changed portion. This greatly reduces chance for error.
-- 
Bill Wisner, HASA "A" Division		..{codas,ihnp4}!killer!billw
"This novel is not to be tossed lightly aside, but to be hurled with great
force." -- Dorothy Parker

turner@daisy.UUCP (D'arc Angel) (12/20/87)

I tried using patch < patch-file, but 2 things went wrong; 1. the first patch
in the file was never applied and 2. patches that created a file (e.g. 
installit in patch 9) failed. I used the patch program that came w/4.3BSD,
if that is not Larry Wall's version could so kind soul send it to me ?

-- 
Laissez les bons temps rouler                     -  Queen Ida
...{decwrl|ucbvax}!imagen!atari!daisy!turner (James M. Turner)
Daisy Systems, 700 E. Middlefield Rd, P.O. Box 7006, 
Mountain View CA 94039-7006.                          (415)960-0123