summaryrefslogtreecommitdiff
path: root/contrib/gdiffmk
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2021-10-08 00:46:41 +1100
committerG. Branden Robinson <g.branden.robinson@gmail.com>2021-10-08 00:51:58 +1100
commit2ab0dacb95863a2e347d06cf970676c74c784ce2 (patch)
tree511787f16400b5cef47d1a0f1616a60b2c8b1887 /contrib/gdiffmk
parentb1bea70174bc470d6c7f37cfb58190e813871946 (diff)
downloadgroff-git-2ab0dacb95863a2e347d06cf970676c74c784ce2.tar.gz
[man pages]: Migrate man(7) cross refs to `MR`.
# Handle simplest case: ".IR foo (1)". s/^.[BI]R \(\\%\)*\([@_[:alnum:]\\-]\+\) (\(@MAN[157]EXT@\))$/.MR \2 \3/ s/^.[BI]R \(\\%\)*\([@_[:alnum:]\\-]\+\) (\([1-8a-z]\+\))$/.MR \2 \3/ # Handle case: trailing puncutation, e.g., ".IR foo (1),". s/^.[BI]R \(\\%\)*\([@_[:alnum:]\\-]\+\) (\(@MAN[157]EXT@\))\([^[:space:]]\+\)/.MR \2 \3 \4/ s/^.[BI]R \(\\%\)*\([@_[:alnum:]\\-]\+\) (\([1-8a-z]\+\))\([^[:space:]]\+\)/.MR \2 \3 \4/ # Handle case: 3rd+ arguments or trailing comments. This case is rare # and will require manual fixup if there are 4+ arguments to MR. Use # groff -man -rCHECKSTYLE=1 to have them automatically reported. s/^.[BI]R \(\\%\)*\([@_[:alnum:]\\-]\+\) (\(@MAN[157]EXT@\))\( .*\)/.MR \2 \3\4/ s/^.[BI]R \(\\%\)*\([@_[:alnum:]\\-]\+\) (\([1-8a-z]\+\))\( .*\)/.MR \2 \3\4/
Diffstat (limited to 'contrib/gdiffmk')
-rw-r--r--contrib/gdiffmk/gdiffmk.1.man14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/gdiffmk/gdiffmk.1.man b/contrib/gdiffmk/gdiffmk.1.man
index f61331978..9c9d1f936 100644
--- a/contrib/gdiffmk/gdiffmk.1.man
+++ b/contrib/gdiffmk/gdiffmk.1.man
@@ -72,7 +72,7 @@ gdiffmk \- mark differences between groff/nroff/troff files
.
.I gdiffmk
compares two
-.IR roff (@MAN7EXT@)
+.MR roff @MAN7EXT@
documents,
.I file1
and
@@ -199,7 +199,7 @@ and
In particular,
.I diff-command
should accept the GNU
-.IR diff (1)
+.MR diff 1
.B \-D
option.
.
@@ -258,11 +258,11 @@ Mike Bianchi
.SH "See also"
.\" ====================================================================
.
-.IR groff (@MAN1EXT@),
-.IR nroff (@MAN1EXT@),
-.IR gtroff (@MAN1EXT@),
-.IR roff (@MAN7EXT@),
-.IR diff (@MAN1EXT@)
+.MR groff @MAN1EXT@ ,
+.MR nroff @MAN1EXT@ ,
+.MR gtroff @MAN1EXT@ ,
+.MR roff @MAN7EXT@ ,
+.MR diff @MAN1EXT@
.
.
.\" Restore compatibility mode (for, e.g., Solaris 10/11).