groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 01/02: man pages: Modernize synopsis markup.


From: G. Branden Robinson
Subject: [groff] 01/02: man pages: Modernize synopsis markup.
Date: Wed, 8 Nov 2017 11:58:41 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 989411237b0a8241c756f4c27ed6c176861a719e
Author: G. Branden Robinson <address@hidden>
Date:   Wed Nov 8 10:42:07 2017 -0500

    man pages: Modernize synopsis markup.
    
    ...to parallelize with 29 other in-tree man pages.
    
    * Use an-ext.tmac's OP instead of a locally-defined one.
    * Use an-ext.tmac's SY and YS macros instead of locally-defined clones.
    
    Signed-off-by: G. Branden Robinson <address@hidden>
---
 contrib/gdiffmk/gdiffmk.1.man     | 14 ++------------
 src/devices/grohtml/grohtml.1.man | 16 ++--------------
 src/devices/grolbp/grolbp.1.man   | 17 ++---------------
 src/devices/grolj4/grolj4.1.man   | 16 ++--------------
 src/preproc/refer/refer.1.man     | 16 ++--------------
 src/utils/afmtodit/afmtodit.1.man | 15 ++-------------
 src/utils/indxbib/indxbib.1.man   | 13 ++-----------
 src/utils/tfmtodit/tfmtodit.1.man | 14 ++------------
 8 files changed, 16 insertions(+), 105 deletions(-)

diff --git a/contrib/gdiffmk/gdiffmk.1.man b/contrib/gdiffmk/gdiffmk.1.man
index e6165b7..3564ed7 100644
--- a/contrib/gdiffmk/gdiffmk.1.man
+++ b/contrib/gdiffmk/gdiffmk.1.man
@@ -31,16 +31,7 @@ gdiffmk \- mark differences between groff/nroff/troff files
 .SH SYNOPSIS
 .\" ====================================================================
 .
-.nr a \n(.j
-.ad l
-.nr i \n(.i
-.in +\w'\fBgdiffmk 'u
-.ti \niu
-.B gdiffmk
-.de OP
-.  ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
-.  el .RB "[\ " "\\$1" "\ ]"
-..
+.SY gdiffmk
 .OP \-a \%addmark
 .OP \-c \%changemark
 .OP \-d \%deletemark
@@ -58,8 +49,7 @@ gdiffmk \- mark differences between groff/nroff/troff files
 [\ \c
 .IR \%output \ \c
 ]
-.br
-.ad \na
+.YS
 .
 .
 .\" ====================================================================
diff --git a/src/devices/grohtml/grohtml.1.man 
b/src/devices/grohtml/grohtml.1.man
index 19a787b..3d56ce6 100644
--- a/src/devices/grohtml/grohtml.1.man
+++ b/src/devices/grohtml/grohtml.1.man
@@ -27,18 +27,7 @@ grohtml \- HTML driver for groff
 .SH SYNOPSIS
 .\" ====================================================================
 .
-.nr a \n(.j
-.ad l
-.nr i \n(.i
-.in +\w'\fBgrohtml 'u
-.ti \niu
-.B grohtml
-.
-.de OP
-.  ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
-.  el .RB "[\ " "\\$1" "\ ]"
-..
-.
+.SY grohtml
 .OP \-bhlnprv
 .OP \-a \%aa-text-bits
 .OP \-D dir
@@ -52,8 +41,7 @@ grohtml \- HTML driver for groff
 .OP \-S level
 .OP \-x \%html-dialect
 .RI "[\ " files\|.\|.\|. "\ ]"
-.br
-.ad \na
+.YS
 .
 .
 .\" ====================================================================
diff --git a/src/devices/grolbp/grolbp.1.man b/src/devices/grolbp/grolbp.1.man
index c974226..f6124a4 100644
--- a/src/devices/grolbp/grolbp.1.man
+++ b/src/devices/grolbp/grolbp.1.man
@@ -39,18 +39,7 @@ series laser printers).
 .SH SYNOPSIS
 .\" ====================================================================
 .
-.nr a \n(.j
-.ad l
-.nh
-.nr i \n(.i
-.in +\w'\fBgrolbp 'u
-.ti \niu
-.B grolbp
-.de OP
-.ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
-.el .RB "[\ " "\\$1" "\ ]"
-..
-.
+.SY grolbp
 .OP \-l
 .OP \-\-landscape
 .OP \-v
@@ -68,9 +57,7 @@ series laser printers).
 .OP \-h
 .OP \-\-help
 .RI "[\ " files\|.\|.\|. "\ ]"
-.br
-.ad \na
-.hy
+.YS
 .
 .
 .\" ====================================================================
diff --git a/src/devices/grolj4/grolj4.1.man b/src/devices/grolj4/grolj4.1.man
index b28a04f..4a06db7 100644
--- a/src/devices/grolj4/grolj4.1.man
+++ b/src/devices/grolj4/grolj4.1.man
@@ -27,18 +27,7 @@ grolj4 \- groff driver for HP Laserjet 4 family
 .SH SYNOPSIS
 .\" ====================================================================
 .
-.nr a \n(.j
-.ad l
-.nr i \n(.i
-.in +\w'\fBgrolj4 'u
-.ti \niu
-.B grolj4
-.
-.de OP
-.  ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
-.  el .RB "[\ " "\\$1" "\ ]"
-..
-.
+.SY grolj4
 .OP \-lv
 .OP \-d \fR[\fPn\fR]\fP
 .OP \-c n
@@ -46,8 +35,7 @@ grolj4 \- groff driver for HP Laserjet 4 family
 .OP \-w n
 .OP \-F dir
 .RI "[\ " files\|.\|.\|. "\ ]"
-.br
-.ad \na
+.YS
 .
 .
 .\" ====================================================================
diff --git a/src/preproc/refer/refer.1.man b/src/preproc/refer/refer.1.man
index f0bfc13..c2f82f4 100644
--- a/src/preproc/refer/refer.1.man
+++ b/src/preproc/refer/refer.1.man
@@ -46,18 +46,7 @@
 .SH SYNOPSIS
 .\" ====================================================================
 .
-.nr a \n(.j
-.ad l
-.nr i \n(.i
-.in +\w'address@hidden@refer 'u
-.ti \niu
-.B @address@hidden
-.
-.de OP
-.  ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
-.  el .RB "[\ " "\\$1" "\ ]"
-..
-.
+.SY @address@hidden
 .OP \-benvCPRS
 .OP \-a n
 .OP \-c fields
@@ -70,8 +59,7 @@
 .OP \-t n
 .OP \-B field.macro
 .RI [\  \%filename \|.\|.\|.\ ]
-.br
-.ad \na
+.YS
 .
 .
 \" --------------------------------------------------------------------
diff --git a/src/utils/afmtodit/afmtodit.1.man 
b/src/utils/afmtodit/afmtodit.1.man
index ffefade..563b000 100644
--- a/src/utils/afmtodit/afmtodit.1.man
+++ b/src/utils/afmtodit/afmtodit.1.man
@@ -34,21 +34,11 @@ afmtodit \- create font files for use with groff \-Tps and 
\-Tpdf
 .  el .TP "\\$1"
 ..
 .
-.de OP
-.  ie \\n(.$-1 .RI "[\ \fB\\$1\fP\ " "\\$2" "\ ]"
-.  el .RB "[\ " "\\$1" "\ ]"
-..
-.
 .\" ====================================================================
 .SH SYNOPSIS
 .\" ====================================================================
 .
-.nr a \n(.j
-.ad l
-.nr i \n(.i
-.in +\w'\fBafmtodit 'u
-.ti \niu
-.B afmtodit
+.SY afmtodit
 .OP \-ckmnsvx
 .OP \-a n
 .OP \-d desc_file
@@ -59,8 +49,7 @@ afmtodit \- create font files for use with groff \-Tps and 
\-Tpdf
 .I afm_file
 .I map_file
 .I font
-.br
-.ad \na
+.YS
 .
 .
 .LP
diff --git a/src/utils/indxbib/indxbib.1.man b/src/utils/indxbib/indxbib.1.man
index 5dd99c1..9d9e9d9 100644
--- a/src/utils/indxbib/indxbib.1.man
+++ b/src/utils/indxbib/indxbib.1.man
@@ -25,16 +25,7 @@
 .SH SYNOPSIS
 .\" ====================================================================
 .
-.nr a \n(.j
-.ad l
-.nr i \n(.i
-.in +\w'address@hidden@indxbib 'u
-.ti \niu
-.B @address@hidden
-.de OP
-.ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
-.el .RB "[\ " "\\$1" "\ ]"
-..
+.SY @address@hidden
 .OP \-vw
 .OP \-c file
 .OP \-d dir
@@ -47,7 +38,7 @@
 .OP \-o file
 .OP \-t n
 .RI [\  filename \|.\|.\|.\ ]
-.ad \na
+.YS
 .
 .
 .\" ====================================================================
diff --git a/src/utils/tfmtodit/tfmtodit.1.man 
b/src/utils/tfmtodit/tfmtodit.1.man
index 9530f3c..62bfa74 100644
--- a/src/utils/tfmtodit/tfmtodit.1.man
+++ b/src/utils/tfmtodit/tfmtodit.1.man
@@ -43,24 +43,14 @@ tfmtodit \- create font files for use with groff \-Tdvi
 .SH SYNOPSIS
 .\" ====================================================================
 .
-.nr a \n(.j
-.ad l
-.nr i \n(.i
-.in +\w'\fBtfmtodit 'u
-.ti \niu
-.B tfmtodit
-.de OP
-.ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
-.el .RB "[\ " "\\$1" "\ ]"
-..
+.SY tfmtodit
 .OP \-sv
 .OP \-g gf_file
 .OP \-k skewchar
 .I tfm_file
 .I map_file
 .I font
-.br
-.ad \na
+.YS
 .
 .
 .\" ====================================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]