diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-13 06:07:37 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2014-10-13 06:07:37 +0200 |
commit | 19f60d9e88208633350987f148396fe1376b76bf (patch) | |
tree | d741c6b350a12eb1905a269b3d5911dd701f33d8 | |
parent | d225aa070b792f49859b04897b0d12f48b2ec153 (diff) | |
download | groff-git-19f60d9e88208633350987f148396fe1376b76bf.tar.gz |
[mdoc] Support `Mdocdate' CVS keyword substitution.
This fixes Savannah bug #42968.
This feature is used for OpenBSD manuals.
* tmac/doc-common (Dd): Handle `$Mdocdate:' argument.
* tmac/groff_mdoc.man: Document it.
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | tmac/doc-common | 4 | ||||
-rw-r--r-- | tmac/groff_mdoc.man | 16 |
3 files changed, 31 insertions, 2 deletions
@@ -1,6 +1,18 @@ 2014-10-12 Ingo Schwarze <schwarze@openbsd.org> + [mdoc] Support `Mdocdate' CVS keyword substitution. + This fixes Savannah bug #42968. + + This feature is used for OpenBSD manuals. + + * tmac/doc-common (Dd): Handle `$Mdocdate:' argument. + + * tmac/groff_mdoc.man: Document it. + +2014-10-12 Ingo Schwarze <schwarze@openbsd.org> + [mdoc] Add `.At III' and `.St -iso8601'. + This fixes Savannah bug #42971. * tmac/doc-syms: Add corresponding version strings. @@ -9,6 +21,7 @@ 2014-10-12 Ingo Schwarze <schwarze@openbsd.org> [mdoc] Update operating system release numbers. + This fixes Savannah bug #42969. * tmac/doc-common: Update NetBSD, OpenBSD, FreeBSD, and DragonFly version strings. diff --git a/tmac/doc-common b/tmac/doc-common index 225331ea3..73e9daa6c 100644 --- a/tmac/doc-common +++ b/tmac/doc-common @@ -799,7 +799,9 @@ . ds doc-command-name . . ie \n[.$] \{\ -. ie (\n[.$] == 3) \ +. ie "\$1"$Mdocdate:" \ +. ds doc-date-string \$2\~\$3, \$4 +. el .ie (\n[.$] == 3) \ . ds doc-date-string \$1\~\$2 \$3 . el \{\ . ds doc-date-string "\*[doc-date-\n[mo]] diff --git a/tmac/groff_mdoc.man b/tmac/groff_mdoc.man index d529f3de5..9502bd4bf 100644 --- a/tmac/groff_mdoc.man +++ b/tmac/groff_mdoc.man @@ -890,7 +890,7 @@ the release ID. 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6 .It DragonFly -1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.8, 1.8.1, 1.9., 1.10, 1.12, 1.12.2, +1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.8, 1.8.1, 1.9, 1.10, 1.12, 1.12.2, 1.13, 2.0, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 2.9.1, 2.10, 2.10.1, 2.11, 2.12, 2.13, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8 .It Darwin @@ -950,6 +950,20 @@ The month's name shall not be abbreviated. With any other number of arguments, the current date is used, ignoring the parameters. .Pp +As a special exception, the format +.Bd -filled -offset indent +.Li .Dd $Mdocdate: +.Aq month +.Aq day +.Aq year +.Li $ +.Ed +.Pp +is also recognized. +It is used in +.Ox +manuals to automatically insert the current date when committing. +.Pp This macro is neither callable nor parsed. .El . |