GDIFFMK(1) | General Commands Manual | GDIFFMK(1) |
gdiffmk - mark differences between groff/nroff/troff files
gdiffmk |
[-a addmark] [-c changemark] [-d deletemark] [-D [-B] [-M mark1 mark2]] [-x diffcmd] [--] file1 file2 [output] |
gdiffmk |
--help |
gdiffmk |
--version |
gdiffmk compares two groff(1), nroff(1), or troff(1) documents, file1 and file2, and creates an output which is file2 with added “margin character” (.mc) commands that indicate the differences.
If the output filename is present, the output is written there. If it is - or absent the output is written to the standard output.
If the file1 or file2 argument is - the standard input is read for that input. Clearly both cannot be -.
Note that the output is not necessarily compatible with all macro packages and all preprocessors. See section “Bugs” below.
The output is not necessarily compatible with all macro packages and all preprocessors. A workaround that is often successful against preprocessor problems is to run gdiffmk on the output of all the preprocessors instead of the input source.
gdiffmk relies on the -Dname option of GNU diff(1) to make a merged “#ifdef” output format. It hasn't been tested whether other versions of diff(1) do support this option. See also the -xdiffcmd option.
gdiffmk was written and is maintained by Mike Bianchi.
27 January 2021 | groff 1.22.4 |