From f43b2695c1d73f6ad605fe950f28b8c966e7e43a Mon Sep 17 00:00:00 2001 From: dtucker Date: Tue, 5 Jun 2007 09:16:59 +0000 Subject: [PATCH] - (dtucker) [mdoc2man.awk] Teach it to deal with $Mdocdate tags that OpenBSD's cvs now adds. --- ChangeLog | 2 ++ mdoc2man.awk | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 38b3726f..e8c5af12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,8 @@ Yields around a 12-16% end-to-end speedup for arcfour256/hmac-md5 patch from markus@ tested dtucker@ and myself, ok markus@ and me (I'm committing at his request) + - (dtucker) [mdoc2man.awk] Teach it to deal with $Mdocdate tags that + OpenBSD's cvs now adds. 20070520 - (dtucker) OpenBSD CVS Sync diff --git a/mdoc2man.awk b/mdoc2man.awk index d6eaf460..4713ae90 100644 --- a/mdoc2man.awk +++ b/mdoc2man.awk @@ -1,6 +1,9 @@ #!/usr/bin/awk # +# $Id$ +# # Version history: +# v4+ Adapted for OpenSSH Portable (see cvs Id and history) # v3, I put the program under a proper license # Dan Nelson added .An, .Aq and fixed a typo # v2, fixed to work on GNU awk --posix and MacOS X @@ -135,6 +138,12 @@ function add(str) { nospace=0 } if(match(words[w],"^Dd$")) { + if(match(words[w+1],"^\\$Mdocdate$")) { + w++; + if(match(words[w+4],"^\\$$")) { + words[w+4] = "" + } + } date=wtail() next } else if(match(words[w],"^Dt$")) { -- 2.45.2