[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/01: [mdoc] Support `Mdocdate' CVS keyword substitution. This
From: |
Werner LEMBERG |
Subject: |
[groff] 01/01: [mdoc] Support `Mdocdate' CVS keyword substitution. This fixes Savannah bug #42968. |
Date: |
Mon, 13 Oct 2014 04:08:15 +0000 |
wl pushed a commit to branch master
in repository groff.
commit 19f60d9e88208633350987f148396fe1376b76bf
Author: Ingo Schwarze <address@hidden>
Date: Mon Oct 13 06:07:37 2014 +0200
[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.
---
ChangeLog | 13 +++++++++++++
tmac/doc-common | 4 +++-
tmac/groff_mdoc.man | 16 +++++++++++++++-
3 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2569f1d..36b3805 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,18 @@
2014-10-12 Ingo Schwarze <address@hidden>
+ [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 <address@hidden>
+
[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 <address@hidden>
[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 225331e..73e9daa 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 d529f3d..9502bd4 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
.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/01: [mdoc] Support `Mdocdate' CVS keyword substitution. This fixes Savannah bug #42968.,
Werner LEMBERG <=