1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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
This commit is contained in:
Ruslan Ermilov 2000-12-06 18:31:21 +00:00
parent 4c5804ea54
commit 78621becb9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69680
3 changed files with 35 additions and 65 deletions

View File

@ -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

View File

@ -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 \
. \}

View File

@ -1,4 +1,3 @@
# $FreeBSD$
/%beginstrip%/,$s/[ ]*\\".*//
/^\.$/d
/%comment%/s/%comment%/.\\"/