Diff Converters
===============

This package contains four programs for converting diffs. Diff files are
created by GNU diff and accepted as input by GNU patch. The two most common
forms are "context diffs" and "unidiffs".

  ud2cd          converts a unidiff (input) to a context diff (output).

  cd2ud          converts a context diff (input) to a unidiff (output).

  cdiffreverse   reverses a context diff.

  cdiffreverse   reverses a unidiff.

They come in three languages:
  - Common Lisp (tested with CLISP),
  - C++ (tested with g++-2.7.2),
  - Java (tested with JDK 1.1.6).

cd2ud is decicated to David S. Miller "context diffs make my head spin".


Installation:
=============

For the Lisp version: Nothing to compile. If you have CLISP installed in
another place than /usr/local/bin/clisp, change the first line of ud2cd.lsp
and cd2ud.lsp. Then copy cd2ud.lsp and ud2cd.lsp to a directory in your PATH.

For the C++ version:
    $ g++ -O2 ud2cd.cc -o ud2cd
    $ g++ -O2 cd2ud.cc -o cd2ud
    $ g++ -O2 cdiffreverse.cc -o cdiffreverse
    $ g++ -O2 udiffreverse.cc -o udiffreverse
Then copy cd2ud, ud2cd, cdiffreverse and udiffreverse to a directory in your
PATH.

For the Java version:
    $ javac -O ud2cd.java
    $ javac -O cd2ud.java
    $ javac -O cdiffreverse.java
    $ javac -O udiffreverse.java
Then copy *.class to a directory in your CLASSPATH.


Copyright notice:
=================

Copyright 1995-2000 Bruno Haible, <haible@clisp.cons.org>

This is free software distributed under the GNU General Public Licence
described in the file COPYING. There is ABSOLUTELY NO WARRANTY, explicit
or implied, on this software.
