From: Alan T. DeKok Date: Fri, 9 Aug 2024 12:06:13 +0000 (-0400) Subject: print out only at end, to avoid dups X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fe4b5f4e7c2d5d65422a305771352b5d17413c5;p=thirdparty%2Ffreeradius-server.git print out only at end, to avoid dups --- diff --git a/doc/antora/missing.pl b/doc/antora/missing.pl index 216001cce99..f8d3103aaed 100755 --- a/doc/antora/missing.pl +++ b/doc/antora/missing.pl @@ -41,17 +41,18 @@ while (@ARGV) { } - foreach my $name (sort {$a cmp $b} keys %used) { + close $FILE; +} + +foreach my $name (sort {$a cmp $b} keys %used) { next if -e $name; print "REF-NO-FILE: ", $name, "\n"; - } +} - foreach my $name (sort {$a cmp $b} keys %exists) { +foreach my $name (sort {$a cmp $b} keys %exists) { next if defined $used{$name}; print "FILE-NO-REF: ", $name, "\n"; - } - - close $FILE; } +