Apply a set of diffs to a source tree.

Contributed by
Larry Philps
Obtained from
GNU CopyLeft
Patch will take a patch file containing any of the four forms of difference listing produced by the diff program and apply those differences to an original file, producing a patched version.

This version of the program understands the GNU unified diff format. The original versions of files that are modified are left with .orig extensions. If any of the patches in a diff will not apply, those patchs are left in a file with the same basename, but with a .reg extension.

Everybody on the net distributed updates in patch format.
This program is used by everyone everywhere.
Work Planned
Man page.
Make 2 copies of a file, and change on slightly. diff the 2 copies to produce a diff file. Then run patch originalFile diffOutput.

Note that all this source is configured to be installed under /usr/skunk. To build it for a different location, compile with make CTRBDESTDIR=directory.