From 1a8f70b737615a1d33d3a0b62f00dd096396eaf3 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Thu, 18 Feb 1999 16:54:24 +0000 Subject: Make .Os behave as defined (unrecognized arguments displayed as given). Add a warning for unknown BSD versions. Make ".Os FreeBSD" work without a warning (fix bug in previous commit). --- contrib/groff/tmac/doc-common | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/contrib/groff/tmac/doc-common b/contrib/groff/tmac/doc-common index 4251a9678142..1e8724fc5a58 100644 --- a/contrib/groff/tmac/doc-common +++ b/contrib/groff/tmac/doc-common @@ -201,12 +201,7 @@ .\" .ds dD \s+4\f(CODRAFT\fP\s-4\ \ \-\-\ \ \\*(dD\ \ \-\-\ \ \s+4\f(CODRAFT\s-4 .de Os .ds oS Null -.if "\\$1"" \{\ -. ds oS BSD -.\} -.if "\\$2"" \{\ -. ds aa Non-Null -.\} +.if "\\$1"" .ds oS BSD .if "\\$1"ATT" \{\ . ds oS AT&T . if "\\$2"" .as oS \0UNIX @@ -230,11 +225,11 @@ . if "\\$2"4.3t" .ds oS 4.3-Tahoe Berkeley Distribution . if "\\$2"4.3r" .ds oS 4.3-Reno Berkeley Distribution . if "\\$2"4.4" .ds oS 4.4BSD +. if "\\*(oS"Null" .tm Unknown BSD version ``\\$2'' at line \\n(c. .\} .if "\\$1"FreeBSD" \{\ -. ie "\\$2"2" .ds oS FreeBSD 2.0 -. el .ds oS FreeBSD \\$2 -. ie \\n(.$==0 \c +. if "\\$2"2" .ds oS FreeBSD 2.0 +. ie \\n(.$==1 \c . el .ie "\\$2"2" \c . el .ie "\\$2"2.0" \c . el .ie "\\$2"2.0.5" \c @@ -252,9 +247,10 @@ . el .ie "\\$2"4.0" \c . el .tm Unknown FreeBSD version ``\\$2'' at line \\n(c. .\} -.if "\\*(oS"Null" .ds oS \0\\$1 -.if "\\*(aa"Non-Null" .as oS \0\\$2 -.rm aa +.if "\\*(oS"Null" \{\ +. ds oS \&\\$1 +. if !"\\$2"" .as oS \& \\$2 +.\} .. .de Dd .if !"\\*(dD"" .nr gX 1 -- cgit v1.2.3