]> andersk Git - openssh.git/blobdiff - mdoc2man.awk
- (dtucker) [mdoc2man.awk] Teach it to deal with $Mdocdate tags that
[openssh.git] / mdoc2man.awk
index d6eaf460154e115756cff1d685c40bfec1e7b77c..4713ae901610fb11c6c5af32deadd1cb1802d576 100644 (file)
@@ -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 <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$")) {
This page took 0.058396 seconds and 4 git commands to generate.