From: Alan T. DeKok Date: Thu, 16 Feb 2023 02:20:13 +0000 (-0500) Subject: add DEFINE to the dictionary formatter X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a8494541d18f1e2ead8e03e0a24960ef637f763;p=thirdparty%2Ffreeradius-server.git add DEFINE to the dictionary formatter --- diff --git a/scripts/dict/format.pl b/scripts/dict/format.pl index eaab1e67565..30765a77b7a 100755 --- a/scripts/dict/format.pl +++ b/scripts/dict/format.pl @@ -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 #