From 78621becb91d884a483a6acfc79da781d7f97b49 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 6 Dec 2000 18:31:21 +0000 Subject: [PATCH] Do not duplicate our efforts checking FreeBSD version. For a new version, simply define the empty string before the .Fx macro definition, like this: .ds Fx*4.3 --- contrib/groff/tmac/doc-common | 37 ++------------------- contrib/groff/tmac/doc-syms | 62 +++++++++++++++++++---------------- contrib/groff/tmac/strip.sed | 1 - 3 files changed, 35 insertions(+), 65 deletions(-) diff --git a/contrib/groff/tmac/doc-common b/contrib/groff/tmac/doc-common index 6820589c6903..97470dfa8973 100644 --- a/contrib/groff/tmac/doc-common +++ b/contrib/groff/tmac/doc-common @@ -232,41 +232,8 @@ . if "\\*(oS"Null" .tm Unknown BSD version ``\\$2'' at line \\n(c. .\} .if "\\$1"FreeBSD" \{\ -. if "\\$2"2" .ds oS FreeBSD 2.0 -. ie \\n(.$==1 %comment% -. el .ie "\\$2"1.0" %comment% -. el .ie "\\$2"1.1" %comment% -. el .ie "\\$2"1.1.5" %comment% -. el .ie "\\$2"1.1.5.1" %comment% -. el .ie "\\$2"2" %comment% -. el .ie "\\$2"2.0" %comment% -. el .ie "\\$2"2.0.5" %comment% -. el .ie "\\$2"2.1" %comment% -. el .ie "\\$2"2.1.5" %comment% -. el .ie "\\$2"2.1.6" %comment% -. el .ie "\\$2"2.1.7" %comment% -. el .ie "\\$2"2.2" %comment% -. el .ie "\\$2"2.2.1" %comment% -. el .ie "\\$2"2.2.2" %comment% -. el .ie "\\$2"2.2.5" %comment% -. el .ie "\\$2"2.2.6" %comment% -. el .ie "\\$2"2.2.7" %comment% -. el .ie "\\$2"2.2.8" %comment% -. el .ie "\\$2"3" %comment% -. el .ie "\\$2"3.0" %comment% -. el .ie "\\$2"3.1" %comment% -. el .ie "\\$2"3.2" %comment% -. el .ie "\\$2"3.3" %comment% -. el .ie "\\$2"3.4" %comment% -. el .ie "\\$2"3.5" %comment% -. el .ie "\\$2"4" %comment% -. el .ie "\\$2"4.0" %comment% -. el .ie "\\$2"4.1" %comment% -. el .ie "\\$2"4.1.1" %comment% -. el .ie "\\$2"4.2" %comment% -. el .ie "\\$2"5" %comment% -. el .ie "\\$2"5.0" %comment% -. el .tm Unknown FreeBSD version ``\\$2'' at line \\n(c. +. ie "\\$2"2" .ds oS FreeBSD 2.0 +. el .if !"\\$2"" .if !dFx*\\$2 .tm Unknown FreeBSD version ``\\$2'' at line \\n(c. .\} .if "\\*(oS"Null" \{\ . ds oS \&\\$1 diff --git a/contrib/groff/tmac/doc-syms b/contrib/groff/tmac/doc-syms index e3b08d93e194..aed521285120 100644 --- a/contrib/groff/tmac/doc-syms +++ b/contrib/groff/tmac/doc-syms @@ -156,6 +156,38 @@ .. .\" NS Fx macro - FreeBSD .\" NS b0 string local temporary +.ds Fx*1.0 +.ds Fx*1.1 +.ds Fx*1.1.5 +.ds Fx*1.1.5.1 +.ds Fx*2 +.ds Fx*2.0 +.ds Fx*2.0.5 +.ds Fx*2.1 +.ds Fx*2.1.5 +.ds Fx*2.1.6 +.ds Fx*2.1.7 +.ds Fx*2.2 +.ds Fx*2.2.1 +.ds Fx*2.2.2 +.ds Fx*2.2.5 +.ds Fx*2.2.6 +.ds Fx*2.2.7 +.ds Fx*2.2.8 +.ds Fx*3 +.ds Fx*3.0 +.ds Fx*3.1 +.ds Fx*3.2 +.ds Fx*3.3 +.ds Fx*3.4 +.ds Fx*3.5 +.ds Fx*4 +.ds Fx*4.0 +.ds Fx*4.1 +.ds Fx*4.1.1 +.ds Fx*4.2 +.ds Fx*5 +.ds Fx*5.0 .de Fx .nr cF \\n(.f .nr cZ \\n(.s @@ -171,35 +203,7 @@ . nr aP \\n(aP+1 . if \\n(C\\n(aP==2 \{\ . ds b0 \\*(A\\n(aP -. ie "\\*(b0"1.0" %comment% -. el .ie "\\*(b0"1.1" %comment% -. el .ie "\\*(b0"1.1.5" %comment% -. el .ie "\\*(b0"1.1.5.1" %comment% -. el .ie "\\*(b0"2.0" %comment% -. el .ie "\\*(b0"2.0.5" %comment% -. el .ie "\\*(b0"2.1" %comment% -. el .ie "\\*(b0"2.1.5" %comment% -. el .ie "\\*(b0"2.1.6" %comment% -. el .ie "\\*(b0"2.1.7" %comment% -. el .ie "\\*(b0"2.2" %comment% -. el .ie "\\*(b0"2.2.1" %comment% -. el .ie "\\*(b0"2.2.2" %comment% -. el .ie "\\*(b0"2.2.5" %comment% -. el .ie "\\*(b0"2.2.6" %comment% -. el .ie "\\*(b0"2.2.7" %comment% -. el .ie "\\*(b0"2.2.8" %comment% -. el .ie "\\*(b0"3.0" %comment% -. el .ie "\\*(b0"3.1" %comment% -. el .ie "\\*(b0"3.2" %comment% -. el .ie "\\*(b0"3.3" %comment% -. el .ie "\\*(b0"3.4" %comment% -. el .ie "\\*(b0"3.5" %comment% -. el .ie "\\*(b0"4.0" %comment% -. el .ie "\\*(b0"4.1" %comment% -. el .ie "\\*(b0"4.1.1" %comment% -. el .ie "\\*(b0"4.2" %comment% -. el .ie "\\*(b0"5.0" %comment% -. el .tm Unknown FreeBSD version ``\\*(b0'' at line \\n(c. +. if !dFx*\\*(b0 .tm Unknown FreeBSD version ``\\*(b0'' at line \\n(c. . rm b0 . as b1 \ . \} diff --git a/contrib/groff/tmac/strip.sed b/contrib/groff/tmac/strip.sed index 400dbf90f5c7..05c9633ede74 100644 --- a/contrib/groff/tmac/strip.sed +++ b/contrib/groff/tmac/strip.sed @@ -1,4 +1,3 @@ # $FreeBSD$ /%beginstrip%/,$s/[ ]*\\".*// /^\.$/d -/%comment%/s/%comment%/.\\"/