98b4adfee4
* Unbreak groff manuals by using tbl(1); reported by pascal@. * Deal with our Mdocdate cvs keyword; as designed by jmc@ in 2007. * Use troffrc for OpenBSD config changes; suggested by Werner Lemberg. * Unbreak the hdtbl examples; from upstream. * Volume names in man(7) page headers; suggested by Yuri Pankov. * Update various string tables; coordinated with upstream. * Add a README explaining local changes; using feedback from pascal@. * Better description and bump. ok pascal@, and tested in an i386 bulk build by naddy@, thanks!
212 lines
7.6 KiB
Plaintext
212 lines
7.6 KiB
Plaintext
$OpenBSD: patch-tmac_doc-common,v 1.2 2011/12/04 15:41:26 schwarze Exp $
|
|
chunk 1: Keep traditional OpenBSD page headers (local change).
|
|
chunk 2+3: Sync with mandoc: more architectures (accepted upstream).
|
|
chunk 4: default value for the .Os macro (local change).
|
|
chunk 5-9: More OS versions (from upstream CVS).
|
|
chunk 10: Handle .Dd Mdocdate (local change).
|
|
chunk 11: Do not use an ugly double dash in the NAME line (local change).
|
|
--- tmac/doc-common.orig Fri Dec 31 08:33:09 2010
|
|
+++ tmac/doc-common Sun Oct 30 23:21:38 2011
|
|
@@ -231,17 +231,17 @@
|
|
.
|
|
.\" an alternative, more detailed scheme for naming the manual sections
|
|
.\"
|
|
-.ds doc-volume-operating-system BSD
|
|
+.ds doc-volume-operating-system OpenBSD
|
|
.nr doc-volume-operating-system-ateol 0
|
|
-.ds doc-volume-ds-1 General Commands Manual
|
|
-.ds doc-volume-ds-2 System Calls Manual
|
|
-.ds doc-volume-ds-3 Library Functions Manual
|
|
-.ds doc-volume-ds-4 Kernel Interfaces Manual
|
|
-.ds doc-volume-ds-5 File Formats Manual
|
|
-.ds doc-volume-ds-6 Games Manual
|
|
-.ds doc-volume-ds-7 Miscellaneous Information Manual
|
|
+.ds doc-volume-ds-1 Reference Manual
|
|
+.ds doc-volume-ds-2 Programmer's Manual
|
|
+.ds doc-volume-ds-3 Programmer's Manual
|
|
+.ds doc-volume-ds-4 Programmer's Manual
|
|
+.ds doc-volume-ds-5 Programmer's Manual
|
|
+.ds doc-volume-ds-6 Reference Manual
|
|
+.ds doc-volume-ds-7 Reference Manual
|
|
.ds doc-volume-ds-8 System Manager's Manual
|
|
-.ds doc-volume-ds-9 Kernel Developer's Manual
|
|
+.ds doc-volume-ds-9 Kernel Manual
|
|
.
|
|
.ds doc-volume-ds-USD User's Supplementary Documents
|
|
.ds doc-volume-ds-PS1 Programmer's Supplementary Documents
|
|
@@ -264,50 +264,72 @@
|
|
.ds doc-volume-as-algor algor
|
|
.ds doc-volume-as-amd64 amd64
|
|
.ds doc-volume-as-amiga amiga
|
|
+.ds doc-volume-as-amigappc amigappc
|
|
.ds doc-volume-as-arc arc
|
|
+.ds doc-volume-as-arm arm
|
|
.ds doc-volume-as-arm26 arm26
|
|
.ds doc-volume-as-arm32 arm32
|
|
+.ds doc-volume-as-armish armish
|
|
.ds doc-volume-as-atari atari
|
|
+.ds doc-volume-as-aviion aviion
|
|
+.ds doc-volume-as-beagle beagle
|
|
.ds doc-volume-as-bebox bebox
|
|
.ds doc-volume-as-cats cats
|
|
.ds doc-volume-as-cesfic cesfic
|
|
.ds doc-volume-as-cobalt cobalt
|
|
.ds doc-volume-as-dreamcast dreamcast
|
|
+.ds doc-volume-as-emips emips
|
|
.ds doc-volume-as-evbarm evbarm
|
|
.ds doc-volume-as-evbmips evbmips
|
|
.ds doc-volume-as-evbppc evbppc
|
|
.ds doc-volume-as-evbsh3 evbsh3
|
|
+.ds doc-volume-as-ews4800mips ews4800mips
|
|
.ds doc-volume-as-hp300 hp300
|
|
.ds doc-volume-as-hp700 hp700
|
|
.ds doc-volume-as-hpcarm hpcarm
|
|
.ds doc-volume-as-hpcmips hpcmips
|
|
.ds doc-volume-as-hpcsh hpcsh
|
|
+.ds doc-volume-as-hppa hppa
|
|
+.ds doc-volume-as-hppa64 hppa64
|
|
.ds doc-volume-as-i386 i386
|
|
+.ds doc-volume-as-ia64 ia64
|
|
+.ds doc-volume-as-ibmnws ibmnws
|
|
+.ds doc-volume-as-iyonix iyonix
|
|
+.ds doc-volume-as-landisk landisk
|
|
+.ds doc-volume-as-loongson loongson
|
|
.ds doc-volume-as-luna68k luna68k
|
|
+.ds doc-volume-as-luna88k luna88k
|
|
.ds doc-volume-as-m68k m68k
|
|
.ds doc-volume-as-mac68k mac68k
|
|
.ds doc-volume-as-macppc macppc
|
|
.ds doc-volume-as-mips mips
|
|
+.ds doc-volume-as-mips64 mips64
|
|
.ds doc-volume-as-mipsco mipsco
|
|
.ds doc-volume-as-mmeye mmeye
|
|
.ds doc-volume-as-mvme68k mvme68k
|
|
+.ds doc-volume-as-mvme88k mvme88k
|
|
.ds doc-volume-as-mvmeppc mvmeppc
|
|
.ds doc-volume-as-netwinder netwinder
|
|
.ds doc-volume-as-news68k news68k
|
|
.ds doc-volume-as-newsmips newsmips
|
|
.ds doc-volume-as-next68k next68k
|
|
.ds doc-volume-as-ofppc ofppc
|
|
+.ds doc-volume-as-palm palm
|
|
.ds doc-volume-as-pc532 pc532
|
|
.ds doc-volume-as-playstation2 playstation2
|
|
.ds doc-volume-as-pmax pmax
|
|
.ds doc-volume-as-pmppc pmppc
|
|
.ds doc-volume-as-powerpc powerpc
|
|
.ds doc-volume-as-prep prep
|
|
+.ds doc-volume-as-rs6000 rs6000
|
|
.ds doc-volume-as-sandpoint sandpoint
|
|
.ds doc-volume-as-sbmips sbmips
|
|
+.ds doc-volume-as-sgi sgi
|
|
.ds doc-volume-as-sgimips sgimips
|
|
.ds doc-volume-as-sh3 sh3
|
|
.ds doc-volume-as-shark shark
|
|
+.ds doc-volume-as-socppc socppc
|
|
+.ds doc-volume-as-solbourne solbourne
|
|
.ds doc-volume-as-sparc sparc
|
|
.ds doc-volume-as-sparc64 sparc64
|
|
.ds doc-volume-as-sun2 sun2
|
|
@@ -316,6 +338,8 @@
|
|
.ds doc-volume-as-vax vax
|
|
.ds doc-volume-as-x68k x68k
|
|
.ds doc-volume-as-x86_64 x86_64
|
|
+.ds doc-volume-as-xen xen
|
|
+.ds doc-volume-as-zaurus zaurus
|
|
.
|
|
.de Dt
|
|
. \" reset default arguments
|
|
@@ -375,7 +399,7 @@
|
|
.\" NS
|
|
.\" NS override this in `mdoc.local', if necessary
|
|
.
|
|
-.ds doc-default-operating-system BSD
|
|
+.ds doc-default-operating-system OpenBSD\~5.0
|
|
.
|
|
.
|
|
.\" NS doc-operating-system global string
|
|
@@ -451,12 +475,16 @@
|
|
.ds doc-operating-system-NetBSD-3.0 3.0
|
|
.ds doc-operating-system-NetBSD-3.0.1 3.0.1
|
|
.ds doc-operating-system-NetBSD-3.0.2 3.0.2
|
|
+.ds doc-operating-system-NetBSD-3.0.3 3.0.3
|
|
.ds doc-operating-system-NetBSD-3.1 3.1
|
|
+.ds doc-operating-system-NetBSD-3.1.1 3.1.1
|
|
.ds doc-operating-system-NetBSD-4.0 4.0
|
|
.ds doc-operating-system-NetBSD-4.0.1 4.0.1
|
|
.ds doc-operating-system-NetBSD-5.0 5.0
|
|
.ds doc-operating-system-NetBSD-5.0.1 5.0.1
|
|
.ds doc-operating-system-NetBSD-5.0.2 5.0.2
|
|
+.ds doc-operating-system-NetBSD-5.1 5.1
|
|
+.ds doc-operating-system-NetBSD-6.0 6.0
|
|
.
|
|
.ds doc-operating-system-OpenBSD-2.0 2.0
|
|
.ds doc-operating-system-OpenBSD-2.1 2.1
|
|
@@ -487,6 +515,8 @@
|
|
.ds doc-operating-system-OpenBSD-4.6 4.6
|
|
.ds doc-operating-system-OpenBSD-4.7 4.7
|
|
.ds doc-operating-system-OpenBSD-4.8 4.8
|
|
+.ds doc-operating-system-OpenBSD-4.9 4.9
|
|
+.ds doc-operating-system-OpenBSD-5.0 5.0
|
|
.
|
|
.ds doc-operating-system-FreeBSD-1.0 1.0
|
|
.ds doc-operating-system-FreeBSD-1.1 1.1
|
|
@@ -543,6 +573,8 @@
|
|
.ds doc-operating-system-FreeBSD-7.3 7.3
|
|
.ds doc-operating-system-FreeBSD-8.0 8.0
|
|
.ds doc-operating-system-FreeBSD-8.1 8.1
|
|
+.ds doc-operating-system-FreeBSD-8.2 8.2
|
|
+.ds doc-operating-system-FreeBSD-9.0 9.0
|
|
.
|
|
.ds doc-operating-system-Darwin-8.0.0 8.0.0
|
|
.ds doc-operating-system-Darwin-8.1.0 8.1.0
|
|
@@ -563,6 +595,16 @@
|
|
.ds doc-operating-system-Darwin-9.4.0 9.4.0
|
|
.ds doc-operating-system-Darwin-9.5.0 9.5.0
|
|
.ds doc-operating-system-Darwin-9.6.0 9.6.0
|
|
+.ds doc-operating-system-Darwin-9.7.0 9.7.0
|
|
+.ds doc-operating-system-Darwin-9.8.0 9.8.0
|
|
+.ds doc-operating-system-Darwin-10.1.0 10.1.0
|
|
+.ds doc-operating-system-Darwin-10.2.0 10.2.0
|
|
+.ds doc-operating-system-Darwin-10.3.0 10.3.0
|
|
+.ds doc-operating-system-Darwin-10.4.0 10.4.0
|
|
+.ds doc-operating-system-Darwin-10.5.0 10.5.0
|
|
+.ds doc-operating-system-Darwin-10.6.0 10.6.0
|
|
+.ds doc-operating-system-Darwin-10.7.0 10.7.0
|
|
+.ds doc-operating-system-Darwin-11.0.0 11.0.0
|
|
.
|
|
.ds doc-operating-system-DragonFly-1.0 1.0
|
|
.ds doc-operating-system-DragonFly-1.1 1.1
|
|
@@ -581,6 +623,11 @@
|
|
.ds doc-operating-system-DragonFly-2.4 2.4
|
|
.ds doc-operating-system-DragonFly-2.6 2.6
|
|
.ds doc-operating-system-DragonFly-2.8 2.8
|
|
+.ds doc-operating-system-DragonFly-2.9 2.9
|
|
+.ds doc-operating-system-DragonFly-2.9.1 2.9.1
|
|
+.ds doc-operating-system-DragonFly-2.10 2.10
|
|
+.ds doc-operating-system-DragonFly-2.10.1 2.10.1
|
|
+.ds doc-operating-system-DragonFly-2.11 2.11
|
|
.
|
|
.de Os
|
|
. ds doc-command-name
|
|
@@ -685,7 +732,9 @@
|
|
. ds doc-command-name
|
|
.
|
|
. ie \n[.$] \{\
|
|
-. ie (\n[.$] == 3) \
|
|
+. ie "\$1"$Mdocdate:" \
|
|
+. ds doc-date-string \$2\~\$3, \$4
|
|
+. el .ie (\n[.$] == 3) \
|
|
. ds doc-date-string \$1\~\$2 \$3
|
|
. el \{\
|
|
. ds doc-date-string "\*[doc-date-\n[mo]]
|
|
@@ -859,7 +908,7 @@
|
|
.\" NS width register `Nd' set above
|
|
.
|
|
.de Nd
|
|
-. nop \[em] \$*
|
|
+. nop \[en] \$*
|
|
..
|
|
.
|
|
.
|