from small one page howto to huge articles all in one place
Last additions:
May 25th. 2007:
April, 26th. 2006:
|
You are here: manpages
gdiffmk
Section: User Commands (1) Updated: 2 July 2023 Index
Return to Main Contents
Name
gdiffmk - mark differences between
groff/ nroff/ troff
files
.nr d-fallback 1
.nr d-fallback 1
Synopsis
[ -a~ad-mark]
[ -c~chang-mark]
[ -d~delet-mark]
[ -x~dif-command]
[ -D
[ -B]
[ -M
mark1 mark2]]
[ --]
file1
file2
[ output]
--help
--version
Description
gdiffmk
compares two
documents,
file1
and
file2,
and creates a
roff
document consisting of
file2
with added margin character
( .mc)
requests indicating output lines that differ from
file1.
If the
file1
or
file2
argument is
[lq] -[rq],
gdiffmk
reads the standard input stream for that input.
If the
output
operand is present,
gdiffmk
writes output to a file of that name.
If it is
[lq] -[rq]
or absent,
gdiffmk
writes output to the standard output stream.
[lq] -[rq]
cannot be both an input and output operand.
Options
--help
displays a usage message
and
--version
shows version information;
both exit afterward.
- -a~ad-mark
-
Use
ad-mark
for source lines not in
file1
but present in
file2.
Default:
[lq]+[rq].
- -B
-
By default,
the deleted texts marked by the
-D
option end with an added
roff
break request,
.br,
to ensure that the deletions are marked properly.
This is the only way to guarantee that deletions and small
changes get flagged.
This option directs the program not to insert these breaks;
it makes no sense to use it without
-D.
- -c~chang-mark
-
Use
chang-mark
for changed source lines.
Default:
[lq]|[rq].
- -d~delet-mark
-
Use the
delet-mark
for deleted source lines.
Default:
[lq]*[rq].
- -D
-
Show the deleted portions from changed and deleted text.
- -M~mark1 mark2
-
Change the delimiting marks for the
-D
option.
It makes no sense to use this option without
-D.
Default delimiting marks:
[lq][[[rq] ... [lq]]][rq].
- -x~dif-command
-
Use the
dif-command
command to perform the comparison of
file1
and
file2.
In particular,
dif-command
should accept the GNU
-D
option.
Default:
diff.
- --
-
Treat all subsequent arguments as file names,
even if they begin with
[lq]-[rq].
Bugs
The output is not necessarily compatible with all macro packages
and all preprocessors.
A workaround that often overcomes preprocessor problems is to run
gdiffmk
on the output of all the preprocessors instead of the input source.
gdiffmk
relies on the
-D
option of GNU
diff
to make a merged [lq]#ifdef[rq] output format.
Busybox
diff
is known to not support it.
Also see the
-x~dif-command
option.
Authors
gdiffmk
was written by
Mike Bianchi
now retired.
It is maintained by the
groff
developers.
See also
Index
- Name
-
- Synopsis
-
- Description
-
- Options
-
- Bugs
-
- Authors
-
- See also
-
|