]> andersk Git - openssh.git/blobdiff - mdoc2man.awk
- (tim) [configure.ac] OpenServer 5 needs BROKEN_GETADDRINFO too.
[openssh.git] / mdoc2man.awk
index 4713ae901610fb11c6c5af32deadd1cb1802d576..bf03e7360a7a14afe1faa501eff05c59ff2f3070 100644 (file)
@@ -138,7 +138,7 @@ function add(str) {
        nospace=0
     }
     if(match(words[w],"^Dd$")) {
-      if(match(words[w+1],"^\\$Mdocdate$")) {
+      if(match(words[w+1],"^\\$Mdocdate:")) {
         w++;
         if(match(words[w+4],"^\\$$")) {
           words[w+4] = ""
@@ -149,6 +149,9 @@ function add(str) {
     } else if(match(words[w],"^Dt$")) {
       id=wtail()
       next
+    } else if(match(words[w],"^Ux$")) {
+      add("UNIX")
+      skip=1
     } else if(match(words[w],"^Ox$")) {
       add("OpenBSD")
       skip=1
@@ -166,6 +169,7 @@ function add(str) {
       refissue=""
       refdate=""
       refopt=""
+      refreport=""
       reference=1
       next
     } else if(match(words[w],"^Re$")) {
@@ -177,9 +181,14 @@ function add(str) {
       }
       if(nrefauthors>1)
        add(" and ")
-      add(refauthors[0] ", \\fI" reftitle "\\fP")
+      if(nrefauthors>0)
+        add(refauthors[0] ", ")
+      add("\\fI" reftitle "\\fP")
       if(length(refissue))
        add(", " refissue)
+      if(length(refreport)) {
+       add(", " refreport)
+      }
       if(length(refdate))
        add(", " refdate)
       if(length(refopt))
@@ -196,6 +205,7 @@ function add(str) {
       if(match(words[w],"^%N$")) { refissue=wtail() }
       if(match(words[w],"^%D$")) { refdate=wtail() }
       if(match(words[w],"^%O$")) { refopt=wtail() }
+      if(match(words[w],"^%R$")) { refreport=wtail() }
     } else if(match(words[w],"^Nm$")) {
       if(synopsis) {
        add(".br")
This page took 0.113402 seconds and 4 git commands to generate.