mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 16:49:40 +00:00
Added a ".Fx" macro to the mdoc package. Usage:
.Fx version.rel { , . ; : ( ) [ ] Example: The .Nm xyzzy command first appeared in .Fx 2.2 . Produces: The xyzzy command first appeared in FreeBSD 2.2. Suggested by wollman.
This commit is contained in:
parent
b168bd14c9
commit
a218f99adb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14070
@ -143,6 +143,24 @@
|
||||
. if "\\$1"V.4" \&\\*(tNAT&T\\*(aa System V.4 \\*(tNUNIX\\*(aa
|
||||
.\}
|
||||
..
|
||||
.\" Ns Fx macro - FreeBSD
|
||||
.de Fx
|
||||
.nr cF \\n(.f
|
||||
.nr cZ \\n(.s
|
||||
.ds aa \&\f\\n(cF\s\\n(cZ
|
||||
.if \\n(.$==2 \{\
|
||||
. if "\\$1"2.0" \&\\*(tNFreeBSD\\*(aa 2.0\\*(aa\\$2
|
||||
. if "\\$1"2.0.5" \&\\*(tNFreeBSD\\*(aa 2.0.5\\*(aa\\$2
|
||||
. if "\\$1"2.1" \&\\*(tNFreeBSD\\*(aa 2.1\\*(aa\\$2
|
||||
. if "\\$1"2.2" \&\\*(tNFreeBSD\\*(aa 2.2\\*(aa\\$2
|
||||
.\}
|
||||
.if \\n(.$==1 \{\
|
||||
. if "\\$1"2.0" \&\\*(tNFreeBSD\\*(aa 2.0\\*(aa
|
||||
. if "\\$1"2.0.5" \&\\*(tNFreeBSD\\*(aa 2.0.5\\*(aa
|
||||
. if "\\$1"2.1" \&\\*(tNFreeBSD\\*(aa 2.1\\*(aa
|
||||
. if "\\$1"2.2" \&\\*(tNFreeBSD\\*(aa 2.2\\*(aa
|
||||
.\}
|
||||
..
|
||||
.\" The Bt macro should go away now
|
||||
.\" Ns Bt macro - prints "is currently in beta test." (HISTORY section)
|
||||
.de Bt
|
||||
|
Loading…
Reference in New Issue
Block a user