Compilation Instructions

The code can be found here:

git clone && cd x11cp/src/mgdiff

Direct compilation

To compile this application, the following command should be used:

xmkmf -a && make

Toplevel Makefile

There is also a wrapper command in the top-level `Makefile` of the repository where this is can be run as:

make mgdiff

The following libraries/dependencies are also required. The names of these will vary from each Linux distribution/BSD, hence the names of these libraries are generically specified:


mgdiff is a graphical frontend to the #diff command, written using #motif. It was originally inspired by a program called #gdiff which only ran on SGI machines.

It allows for viewing the difference between two files and to write out the merged result to a third file, if desired.

This is version 1.0, 1994, by Daniel Williams.

mgdiff implements the implements the Scrolled Region recommendations of Section 2.3.4 of the OSF/Motif Style Guide (release 1.1), meaning that the arrow and paging keys will work to scroll as well.

The code has been tweaked only a little to override a custom getline() implementation.