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 GNU CLISP), - C++ (tested with g++-2.7.2), - Java (tested with JDK 1.1.6 and gcj-3.0.4). 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.lisp and cd2ud.lisp. Then copy cd2ud.lisp and ud2cd.lisp to a directory in your PATH. For the C++ version: $ make -f Makefile-c++ Then copy cd2ud, ud2cd, cdiffreverse and udiffreverse to a directory in your PATH. For the Java (gcj) version: You need gcj-3.0 or newer. $ make -f Makefile-java-exe Then copy cd2ud, ud2cd, cdiffreverse and udiffreverse to a directory in your PATH. For the Java version: $ make -f Makefile-java-jar Then copy *.jar to a library directory, and use "java -jar cd2ud.jar", "java -jar ud2cd.jar" etc. to launch the programs. Copyright notice: ================= Copyright 1995-2002 Bruno Haible, 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.