>From a44f75c174afd16e27d1faff3bd2a917b4fb246b Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 21 Jul 2009 09:13:51 +0200 Subject: [PATCH] Move the resource parsing out of the makefile parse loop --- transl/scripts/checkmakefile.pl | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/transl/scripts/checkmakefile.pl b/transl/scripts/checkmakefile.pl index ef83bdd..0c91132 100755 --- a/transl/scripts/checkmakefile.pl +++ b/transl/scripts/checkmakefile.pl @@ -433,6 +433,7 @@ if (!@makefiles) @makefiles = split(/\s/,`find $srcdir/ -name Makefile.in -print`); } +my %checks = (); # parse the makefiles foreach my $makefile (@makefiles) { @@ -471,6 +472,15 @@ foreach my $makefile (@makefiles) close MAKEFILE; next unless @files; + $checks{$path}{defines} = $defs; + $checks{$path}{files} = [ @files ]; +} + +foreach my $path (keys %checks) +{ + my $defs = $checks{$path}{defines}; + my @files = @{$checks{$path}{files}}; + if ("$path" eq "dlls/kernel32") { mycheck("nonlocale", $path,$defs,@files); -- 1.6.0.6