]> andersk Git - openssh.git/commitdiff
- (dtucker) [mdoc2man.awk] Add support for %R references, used for RFCs.
authordtucker <dtucker>
Tue, 5 Jun 2007 10:01:16 +0000 (10:01 +0000)
committerdtucker <dtucker>
Tue, 5 Jun 2007 10:01:16 +0000 (10:01 +0000)
ChangeLog
mdoc2man.awk

index ad024b465c10edf979ead4ef4bcb4c09d396442d..b674ed5f28863b847357a9545cbd7bc59f018068 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,7 @@
    OpenBSD's cvs now adds.
  - (dtucker) [mdoc2man.awk] Remove trailing "$" from Mdocdate regex so
    mindrot's cvs doesn't expand it on us.
+ - (dtucker) [mdoc2man.awk] Add support for %R references, used for RFCs.
 
 20070520
  - (dtucker) OpenBSD CVS Sync
index 67eb25c0813fd0c2042573e63ca2150e8e6b1e46..7ad1457873eb4e1c0e4662a1110ae5054865259c 100644 (file)
@@ -166,6 +166,7 @@ function add(str) {
       refissue=""
       refdate=""
       refopt=""
+      refreport=""
       reference=1
       next
     } else if(match(words[w],"^Re$")) {
@@ -177,9 +178,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 +202,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.058886 seconds and 5 git commands to generate.