summaryrefslogtreecommitdiffstats
path: root/share/tmac
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2007-05-26 21:10:04 +0000
committerjmc <jmc@openbsd.org>2007-05-26 21:10:04 +0000
commitd229a9f2af27fe3f5a8fe47e6d58ab4bf5acaeb8 (patch)
tree9975f609cac92dc29f8025f57aacee2a2386efae /share/tmac
parentadd support for Mdocdate rcs keyword in opencvs too. (diff)
downloadwireguard-openbsd-d229a9f2af27fe3f5a8fe47e6d58ab4bf5acaeb8.tar.xz
wireguard-openbsd-d229a9f2af27fe3f5a8fe47e6d58ab4bf5acaeb8.zip
allow mdoc to understand a cvs \$Mdocdate\$ keyword in the .Dd line:
we'll use this shortly to bump .Dd automatically; ok deraadt
Diffstat (limited to 'share/tmac')
-rw-r--r--share/tmac/mdoc/doc-common39
1 files changed, 22 insertions, 17 deletions
diff --git a/share/tmac/mdoc/doc-common b/share/tmac/mdoc/doc-common
index f03e9e5552b..d5b5585e5d2 100644
--- a/share/tmac/mdoc/doc-common
+++ b/share/tmac/mdoc/doc-common
@@ -1,4 +1,4 @@
-.\" $OpenBSD: doc-common,v 1.51 2007/02/12 13:10:02 henning Exp $
+.\" $OpenBSD: doc-common,v 1.52 2007/05/26 21:10:04 jmc Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -290,24 +290,29 @@
.de Dd
.if !"\\*(dD"" .nr gX 1
.ie \\n(.$>0 \{\
-. ie \\n(.$==3 \{\
-. ds dD \\$1 \\$2 \\$3
+. ie "\\$1"$Mdocdate" \{\
+. ds dD \\$2 \\$3, \\$4
. \}
. el \{\
-. if "\\n(mo"1" .ds dD January
-. if "\\n(mo"2" .ds dD February
-. if "\\n(mo"3" .ds dD March
-. if "\\n(mo"4" .ds dD April
-. if "\\n(mo"5" .ds dD May
-. if "\\n(mo"6" .ds dD June
-. if "\\n(mo"7" .ds dD July
-. if "\\n(mo"8" .ds dD August
-. if "\\n(mo"9" .ds dD September
-. if "\\n(mo"10" .ds dD October
-. if "\\n(mo"11" .ds dD November
-. if "\\n(mo"12" .ds dD December
-. nr *year \\n(yr+1900
-. as dD \&\ \\n(dy, \\n[*year]
+. ie \\n(.$==3 \{\
+. ds dD \\$1 \\$2 \\$3
+. \}
+. el \{\
+. if "\\n(mo"1" .ds dD January
+. if "\\n(mo"2" .ds dD February
+. if "\\n(mo"3" .ds dD March
+. if "\\n(mo"4" .ds dD April
+. if "\\n(mo"5" .ds dD May
+. if "\\n(mo"6" .ds dD June
+. if "\\n(mo"7" .ds dD July
+. if "\\n(mo"8" .ds dD August
+. if "\\n(mo"9" .ds dD September
+. if "\\n(mo"10" .ds dD October
+. if "\\n(mo"11" .ds dD November
+. if "\\n(mo"12" .ds dD December
+. nr *year \\n(yr+1900
+. as dD \&\ \\n(dy, \\n[*year]
+. \}
. \}
.\}
.el \{\