]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add DEFINE to the dictionary formatter
authorAlan T. DeKok <aland@freeradius.org>
Thu, 16 Feb 2023 02:20:13 +0000 (21:20 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 17 Feb 2023 02:54:19 +0000 (21:54 -0500)
scripts/dict/format.pl

index eaab1e67565a06be417f38cb8c5550033acab509..30765a77b7a1ebecc77319c62dfc7aee96f1d714 100755 (executable)
@@ -230,6 +230,20 @@ while (@ARGV) {
             next;
         }
 
+        #
+        #  Get DEFINE.
+        #
+        if (/^DEFINE\s+([-\w]+)\s+(\w+)(.*)/) {
+            my $name = $1;
+            my $tabs = tabs(40, $name);
+
+            my $type = $2;
+            my $stuff = $3;
+
+            push @output, "DEFINE\t$name$tabs\t$type$stuff\n";
+            next;
+        }
+
         #
         #  Get MEMBER
         #