diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-06-05 11:16:59 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-06-05 11:16:59 +0200 |
commit | 51e5ab06d327f08b5d74fb8ea7b3fb5c2cde30a2 (patch) | |
tree | 22127b2f7bae4057e2a1dea42aed0add516cab5f /mdoc2man.awk | |
parent | - djm@cvs.openbsd.org 2007/06/05 06:52:37 (diff) | |
download | openssh-51e5ab06d327f08b5d74fb8ea7b3fb5c2cde30a2.tar.xz openssh-51e5ab06d327f08b5d74fb8ea7b3fb5c2cde30a2.zip |
- (dtucker) [mdoc2man.awk] Teach it to deal with $Mdocdate tags that
OpenBSD's cvs now adds.
Diffstat (limited to 'mdoc2man.awk')
-rw-r--r-- | mdoc2man.awk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mdoc2man.awk b/mdoc2man.awk index d6eaf4601..5f46aa140 100644 --- a/mdoc2man.awk +++ b/mdoc2man.awk @@ -1,6 +1,9 @@ #!/usr/bin/awk # +# $Id: mdoc2man.awk,v 1.6 2007/06/05 09:16:59 dtucker Exp $ +# # Version history: +# v4+ Adapted for OpenSSH Portable (see cvs Id and history) # v3, I put the program under a proper license # Dan Nelson <dnelson@allantgroup.com> 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$")) { |