Replace the old .Nx macro (which was not parsed and callable, in spite

of what the documentation claimed) with a new one that is parsed and
callable, and far simplyer -- it turns ".Nx FOO ." into "NetBSD FOO."
without needing to have version numbers hard coded in.
Add a .Fx macro that is a copy of the .Nx macro except that it prints
"FreeBSD" instead of "NetBSD" -- this should make any future "HISTORY"
sections which credit FreeBSD easier, and will not require that we
constantly track their macro versions.
This commit is contained in:
perry 1998-02-05 04:31:21 +00:00
parent bd968fbc68
commit 4f31be853e
1 changed files with 44 additions and 37 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)doc-syms 8.1 (Berkeley) 6/8/93
.\" $NetBSD: doc-syms,v 1.28 1997/12/20 20:33:52 kleink Exp $
.\" $NetBSD: doc-syms,v 1.29 1998/02/05 04:31:21 perry Exp $
.\"
.\" %beginstrip%
.\" NS Ux macro - UNIX
@ -121,48 +121,55 @@
.de Ud
\&currently under development.
..
.\" Ns Nx macro - NetBSD
.\" NS Nx macro -- NetBSD
.de Nx
.nr cF \\n(.f
.nr cZ \\n(.s
.ds aa \&\f\\n(cF\s\\n(cZ
.if \\n(.$==2 \{\
. if "\\$1"0.8" \&\\*(tNNetBSD 0.8\\*(aa\\$2
. if "\\$1"0.8a" \&\\*(tNNetBSD 0.8A\\*(aa\\$2
. if "\\$1"0.9" \&\\*(tNNetBSD 0.9\\*(aa\\$2
. if "\\$1"0.9a" \&\\*(tNNetBSD 0.9A\\*(aa\\$2
. if "\\$1"1.0" \&\\*(tNNetBSD 1.0\\*(aa\\$2
. if "\\$1"1.0a" \&\\*(tNNetBSD 1.0A\\*(aa\\$2
. if "\\$1"1.1" \&\\*(tNNetBSD 1.1\\*(aa\\$2
. if "\\$1"1.2" \&\\*(tNNetBSD 1.2\\*(aa\\$2
. if "\\$1"1.2a" \&\\*(tNNetBSD 1.2A\\*(aa\\$2
. if "\\$1"1.2b" \&\\*(tNNetBSD 1.2B\\*(aa\\$2
. if "\\$1"1.2c" \&\\*(tNNetBSD 1.2C\\*(aa\\$2
. if "\\$1"1.2d" \&\\*(tNNetBSD 1.2D\\*(aa\\$2
. if "\\$1"1.2e" \&\\*(tNNetBSD 1.2E\\*(aa\\$2
. if "\\$1"1.3" \&\\*(tNNetBSD 1.3\\*(aa\\$2
. if "\\$1"1.4" \&\\*(tNNetBSD 1.4\\*(aa\\$2
.if \\n(aC==0 \{\
. ie \\n(.$==0 \&\\*(tNNetBSD\\*(aa
. el .aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
.\}
.if \\n(.$==1 \{\
. if "\\$1"0.8" \&\\*(tNNetBSD 0.8\\*(aa
. if "\\$1"0.8a" \&\\*(tNNetBSD 0.8A\\*(aa
. if "\\$1"0.9" \&\\*(tNNetBSD 0.9\\*(aa
. if "\\$1"0.9a" \&\\*(tNNetBSD 0.9A\\*(aa
. if "\\$1"1.0" \&\\*(tNNetBSD 1.0\\*(aa
. if "\\$1"1.0a" \&\\*(tNNetBSD 1.0A\\*(aa
. if "\\$1"1.1" \&\\*(tNNetBSD 1.1\\*(aa
. if "\\$1"1.2" \&\\*(tNNetBSD 1.2\\*(aa
. if "\\$1"1.2a" \&\\*(tNNetBSD 1.2A\\*(aa
. if "\\$1"1.2b" \&\\*(tNNetBSD 1.2B\\*(aa
. if "\\$1"1.2c" \&\\*(tNNetBSD 1.2C\\*(aa
. if "\\$1"1.2d" \&\\*(tNNetBSD 1.2D\\*(aa
. if "\\$1"1.2e" \&\\*(tNNetBSD 1.2E\\*(aa
. if "\\$1"1.3" \&\\*(tNNetBSD 1.3\\*(aa
. if "\\$1"1.4" \&\\*(tNNetBSD 1.4\\*(aa
. if "\\$1"." \&\\*(tNNetBSD\\$1\\*(aa
. if "\\$1"," \&\\*(tNNetBSD\\$1\\*(aa
.if \\n(aC>\\n(aP \{\
. nr aP \\n(aP+1
. ie \\n(C\\n(aP==2 \{\
. as b1 \&\\*(tNNetBSD\ \&\\*(A\\n(aP\\*(aa
. ie \\n(aC>\\n(aP \{\
. nr aP \\n(aP+1
. nR
. \}
. el .aZ
. \}
. el \{\
. as b1 \&\\*(tNNetBSD\\*(aa
. nR
. \}
.\}
..
.\" NS Fx macro -- FreeBSD
.de Fx
.nr cF \\n(.f
.nr cZ \\n(.s
.ds aa \&\f\\n(cF\s\\n(cZ
.if \\n(aC==0 \{\
. ie \\n(.$==0 \&\\*(tNFreeBSD\\*(aa
. el .aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
.\}
.if \\n(aC>\\n(aP \{\
. nr aP \\n(aP+1
. ie \\n(C\\n(aP==2 \{\
. as b1 \&\\*(tNFreeBSD\ \&\\*(A\\n(aP\\*(aa
. ie \\n(aC>\\n(aP \{\
. nr aP \\n(aP+1
. nR
. \}
. el .aZ
. \}
. el \{\
. as b1 \&\\*(tNFreeBSD\\*(aa
. nR
. \}
.\}
.if \\n(.$==0 \&\\*(tNNetBSD\\*(aa
..
.\" Ns At macro - AT&T UNIX (this macro does not handle punctuation)
.de At