]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fixes and notes for the future
authorAlan T. DeKok <aland@freeradius.org>
Wed, 27 Jun 2018 17:40:15 +0000 (13:40 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 27 Jun 2018 17:48:56 +0000 (13:48 -0400)
scripts/conf2adoc

index 0a65c4cb8b89f3d9a21e596f932f14a4c2d5f4aa..3bf5ecf66868db3a0591d4a3202cb365d3000a6e 100755 (executable)
@@ -38,7 +38,7 @@ while (<>) {
        $firstcol = 0;
     }
 
-    if (($firstcol == 1) && ($oldcol == 0)) {
+    if (($firstcol == 1) && ($oldcol == 0) && ($raw == 0)) {
        s/^#//;
     }
 
@@ -65,6 +65,15 @@ while (<>) {
            print "  ";
        }
 
+       #
+       #  @todo - load up www.freeradius.org/rfc/refs
+       #
+       #  Split the input line on spaces, into a hash array (for
+       #  uniqueness) and check each word against "refs".  If found,
+       #  the word is an attribute.  Replace the word in $_ with a
+       #  reference to the attribute definition.
+       #
+
        print;
        next;
     }