summaryrefslogtreecommitdiff
path: root/tmac/doc-common
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-03-30 12:52:02 +0000
committerwlemb <wlemb>2001-03-30 12:52:02 +0000
commit56da562cadf86527bd9794240398be96f83b062e (patch)
treed13c224506d97ab18d904a5c6b8aba67816f453f /tmac/doc-common
parent23abe4f0a4086b81f18014c0cb43e62f8497f577 (diff)
downloadgroff-56da562cadf86527bd9794240398be96f83b062e.tar.gz
Remove .Ld from mdoc package; replace it with special handling of
`...'. * tmac/doc-common: Remove `Ld' register. Uncomment `doc-volume-ds-*' strings. Remove `doc-operating-system-default'. (Os): Updated. * tmac/doc-syms (Ld): Removed. * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle `...' specially. * NEWS: Updated. * tmac/groff_mdoc.man: Many fixes and updates. * tmac/www.tmac: Save compatibility mode.
Diffstat (limited to 'tmac/doc-common')
-rw-r--r--tmac/doc-common59
1 files changed, 26 insertions, 33 deletions
diff --git a/tmac/doc-common b/tmac/doc-common
index dbd05ff2..a20f6cdf 100644
--- a/tmac/doc-common
+++ b/tmac/doc-common
@@ -102,7 +102,6 @@
.nr In 12n\" ?
.nr It 8n\" ?
.nr Lb 11n
-.nr Ld 4n
.nr Li 16n
.nr Lk 6n\" ?
.nr Lp 8n\" ?
@@ -239,15 +238,15 @@
.
.\" an alternative, more detailed scheme for naming the manual sections
.\"
-.\" .ds doc-volume-ds-1 System General Commands Manual
-.\" .ds doc-volume-ds-2 System Calls Manual
-.\" .ds doc-volume-ds-3 System Library Functions Manual
-.\" .ds doc-volume-ds-4 System Kernel Interfaces Manual
-.\" .ds doc-volume-ds-5 System File Formats Manual
-.\" .ds doc-volume-ds-6 System Games Manual
-.\" .ds doc-volume-ds-7 System Miscellaneous Information Manual
-.\" .ds doc-volume-ds-8 System Manager's Manual
-.\" .ds doc-volume-ds-9 System Kernel Developer's Manual
+.ds doc-volume-ds-1 System General Commands Manual
+.ds doc-volume-ds-2 System Calls Manual
+.ds doc-volume-ds-3 System Library Functions Manual
+.ds doc-volume-ds-4 System Kernel Interfaces Manual
+.ds doc-volume-ds-5 System File Formats Manual
+.ds doc-volume-ds-6 System Games Manual
+.ds doc-volume-ds-7 System Miscellaneous Information Manual
+.ds doc-volume-ds-8 System Manager's Manual
+.ds doc-volume-ds-9 System Kernel Developer's Manual
.
.ds doc-volume-ds-USD System User's Supplementary Documents
.ds doc-volume-ds-PS1 System Programmer's Supplementary Documents
@@ -346,8 +345,10 @@
.
.\" NS doc-operating-system global string
.\" NS the exact version of the operating system
+.\" NS
+.\" NS override this in `mdoc.local', if necessary
.
-.ds doc-operating-system
+.ds doc-operating-system BSD
.
.
.\" NS Os user macro (not parsed, not callable)
@@ -429,15 +430,11 @@
.ds doc-operating-system-FreeBSD-4.3 4.3
.ds doc-operating-system-FreeBSD-5.0 5.0
.
-.ds doc-operating-system-default BSD
-.
.de Os
-. ds doc-operating-system Null
-.
. if "\$1"" \
-. ds doc-operating-system "\*[doc-operating-system-default]
+. return
.
-. if "\$1"ATT" \{\
+. ie "\$1"ATT" \{\
. ds doc-operating-system AT&T
. if \A\$2 \{\
. ie d doc-operating-system-ATT-\$2 \
@@ -445,25 +442,14 @@
. el \
. as doc-operating-system " UNIX
. \}\}
-.
-. if "\$1"BSD" \{\
+. el \{ .ie "\$1"BSD" \{\
. if \A\$2 \{\
. ie d doc-operating-system-BSD-\$2 \
. ds doc-operating-system "\*[doc-operating-system-BSD-\$2]
. el \
. tm mdoc warning: .Os: Unknown BSD version `\$2' (#\n[.c])
. \}\}
-.
-. if "\$1"NetBSD" \{\
-. ds doc-operating-system NetBSD
-. if \A\$2 \{\
-. ie d doc-operating-system-NetBSD-\$2 \
-. as doc-operating-system \~\*[doc-operating-system-NetBSD-\$2]
-. el \
-. tm mdoc warning: .Os: Unknown NetBSD version `\$2' (#\n[.c])
-. \}\}
-.
-. if "\$1"FreeBSD" \{\
+. el \{ .ie "\$1"FreeBSD" \{\
. ds doc-operating-system FreeBSD
. if \A\$2 \{\
. ie d doc-operating-system-FreeBSD-\$2 \
@@ -471,12 +457,19 @@
. el \
. tm mdoc warning: .Os: Unknown FreeBSD version `\$2' (#\n[.c])
. \}\}
-.
-. if "\*[doc-operating-system]"Null" \{\
+. el \{ .ie "\$1"NetBSD" \{\
+. ds doc-operating-system NetBSD
+. if \A\$2 \{\
+. ie d doc-operating-system-NetBSD-\$2 \
+. as doc-operating-system \~\*[doc-operating-system-NetBSD-\$2]
+. el \
+. tm mdoc warning: .Os: Unknown NetBSD version `\$2' (#\n[.c])
+. \}\}
+. el \{\
. ds doc-operating-system \$1
. if !"\$2"" \
. as doc-operating-system " \$2
-. \}
+. \}\}\}\}
..
.
.