1GDIFFMK(1)                  General Commands Manual                 GDIFFMK(1)
2
3
4

NAME

SYNOPSIS

7       gdiffmk [ -aaddmark ] [ -cchangemark ] [ -ddeletemark ] [ -D [ -B ]
8               [ -Mmark1 mark2 ] ] [ -xdiffcmd ] [ -- ] [ --help ]
9               [ --version ] file1 file2 [ output ]
10

DESCRIPTION

12       gdiffmk  compares  two groff(1), nroff(1), or troff(1) documents, file1
13       and file2, and creates an output which  is  file2  with  added  `margin
14       character' (.mc) commands that indicate the differences.
15
16       If  the output filename is present, the output is written there.  If it
17       is - or absent the output is written to the standard output.
18
19       If the file1 or file2 argument is - the standard input is read for that
20       input.  Clearly both cannot be -.
21
22       Note that the output is not necessarily compatible with all macro pack‐
23       ages and all preprocessors.  See the BUGS section below.
24

OPTIONS

26       -aaddmark
27              Use the addmark for source lines not in  file1  but  present  in
28              file2.  Default: +.
29
30       -B     By  default,  the deleted texts marked by the -D option end with
31              an added troff break command, .br, to ensure that the  deletions
32              are  marked  properly.   This  is the only way to guarantee that
33              deletions and small changes get flagged.   This  option  directs
34              the program not to insert these breaks; it makes no sense to use
35              it without -D.
36
37       -cchangemark
38              Use the changemark for changed source lines.  Default: |.
39
40       -ddeletemark
41              Use the deletemark for deleted source lines.  Default: *.
42
43       -D     Show  the  deleted  portions  from  changed  and  deleted  text.
44              Default delimiting marks: [[ ... ]].
45
46       -Mmark1 mark2
47              Change  the  delimiting  marks  for  the -D option.  It makes no
48              sense to use this option without -D.
49
50       -xdiffcmd
51              Use the diffcmd command to perform the comparison of  file1  and
52              file2.  In particular, diffcmd should accept the GNU diff -Dname
53              option.  Default: diff(1).
54
55       --     All the following arguments are treated as file names,  even  if
56              they begin with -.
57
58       --help Print a usage message on standard error output and exit.
59
60       --version
61              Print version information on the standard output and exit.
62

BUGS

64       The  output  is  not necessarily compatible with all macro packages and
65       all preprocessors.  A workaround that is often successful against  pre‐
66       processor  problems  is  to  run  gdiffmk on the output of all the pre‐
67       processors instead of the input source.
68
69       gdiffmk relies on the -Dname option of GNU diff(1)  to  make  a  merged
70       `#ifdef'  output  format.  It hasn't been tested whether other versions
71       of diff(1) do support this option.  See also the -xdiffcmd option.
72
73       Report bugs to ⟨bug-groff@gnu.org⟩.  Include a complete, self-contained
74       example that will allow the bug to be reproduced, and say which version
75       of gdiffmk you are using.
76
78       Copyright © 2004-2014 Free Software Foundation, Inc.
79
80       This file is part of the gdiffmk utility, which is  part  of  groff,  a
81       free software project.
82
83       You  can  redistribute and/or modify gdiffmk under the terms of the GNU
84       General Public License as published by the  Free  Software  Foundation,
85       either version 3 of the License, or (at your option) any later version.
86
87       gdiffmk  is distributed in the hope that it will be useful, but WITHOUT
88       ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY  or
89       FITNESS  FOR  A PARTICULAR PURPOSE.  See the GNU General Public License
90       for more details.
91
92       You should have received a copy of the GNU General Public License along
93       with this program.  If not, see <http://www.gnu.org/licenses/>.
94

AUTHORS

96       This document was written and is maintained by Mike Bianchi
97

SEE ALSO

99       groff(1), nroff(1), gtroff(1), diff(1)
100
101
102
103Groff Version 1.22.3            4 November 2014                     GDIFFMK(1)
Impressum