summaryrefslogtreecommitdiff
path: root/contrib/mom
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/mom
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/mom')
-rw-r--r--contrib/mom/groff_mom.7.man8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/mom/groff_mom.7.man b/contrib/mom/groff_mom.7.man
index a1cbee0d7..65a042878 100644
--- a/contrib/mom/groff_mom.7.man
+++ b/contrib/mom/groff_mom.7.man
@@ -109,7 +109,7 @@ documents with a minimum of typesetting intervention.
.
.P
Files processed with
-.BR pdfmom (@MAN1EXT@)
+.MR pdfmom @MAN1EXT@
with or without the
.RI \-T ps
option, produce
@@ -3397,9 +3397,9 @@ You can browse it interactively with \[lq]info groff\[rq].
.
.
.P
-.IR pdfmom (@MAN1EXT@),
-.IR groff (@MAN1EXT@),
-.IR \%@g@troff (@MAN1EXT@)
+.MR pdfmom @MAN1EXT@ ,
+.MR groff @MAN1EXT@ ,
+.MR @g@troff @MAN1EXT@
.
.
.\" Restore compatibility mode (for, e.g., Solaris 10/11).