summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2007-06-05 19:16:59 +1000
committerDarren Tucker <dtucker@zip.com.au>2007-06-05 19:16:59 +1000
commit51e5ab06d327f08b5d74fb8ea7b3fb5c2cde30a2 (patch)
tree22127b2f7bae4057e2a1dea42aed0add516cab5f
parent5f3d5be52f02d2d149cc11ec4a511d022444d2b1 (diff)
- (dtucker) [mdoc2man.awk] Teach it to deal with $Mdocdate tags that
OpenBSD's cvs now adds.
-rw-r--r--ChangeLog4
-rw-r--r--mdoc2man.awk9
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c5c0c9dde..bbba954f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,8 @@
24 Yields around a 12-16% end-to-end speedup for arcfour256/hmac-md5 24 Yields around a 12-16% end-to-end speedup for arcfour256/hmac-md5
25 patch from markus@ tested dtucker@ and myself, ok markus@ and me (I'm 25 patch from markus@ tested dtucker@ and myself, ok markus@ and me (I'm
26 committing at his request) 26 committing at his request)
27 - (dtucker) [mdoc2man.awk] Teach it to deal with $Mdocdate tags that
28 OpenBSD's cvs now adds.
27 29
2820070520 3020070520
29 - (dtucker) OpenBSD CVS Sync 31 - (dtucker) OpenBSD CVS Sync
@@ -2967,4 +2969,4 @@
2967 OpenServer 6 and add osr5bigcrypt support so when someone migrates 2969 OpenServer 6 and add osr5bigcrypt support so when someone migrates
2968 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 2970 passwords between UnixWare and OpenServer they will still work. OK dtucker@
2969 2971
2970$Id: ChangeLog,v 1.4676 2007/06/05 08:30:18 dtucker Exp $ 2972$Id: ChangeLog,v 1.4677 2007/06/05 09:16:59 dtucker Exp $
diff --git a/mdoc2man.awk b/mdoc2man.awk
index d6eaf4601..5f46aa140 100644
--- a/mdoc2man.awk
+++ b/mdoc2man.awk
@@ -1,6 +1,9 @@
1#!/usr/bin/awk 1#!/usr/bin/awk
2# 2#
3# $Id: mdoc2man.awk,v 1.6 2007/06/05 09:16:59 dtucker Exp $
4#
3# Version history: 5# Version history:
6# v4+ Adapted for OpenSSH Portable (see cvs Id and history)
4# v3, I put the program under a proper license 7# v3, I put the program under a proper license
5# Dan Nelson <dnelson@allantgroup.com> added .An, .Aq and fixed a typo 8# Dan Nelson <dnelson@allantgroup.com> added .An, .Aq and fixed a typo
6# v2, fixed to work on GNU awk --posix and MacOS X 9# v2, fixed to work on GNU awk --posix and MacOS X
@@ -135,6 +138,12 @@ function add(str) {
135 nospace=0 138 nospace=0
136 } 139 }
137 if(match(words[w],"^Dd$")) { 140 if(match(words[w],"^Dd$")) {
141 if(match(words[w+1],"^\\$Mdocdate:$")) {
142 w++;
143 if(match(words[w+4],"^\\$$")) {
144 words[w+4] = ""
145 }
146 }
138 date=wtail() 147 date=wtail()
139 next 148 next
140 } else if(match(words[w],"^Dt$")) { 149 } else if(match(words[w],"^Dt$")) {