Paul Vriens : transl: Move the resource parsing out of the makefile parse loop.

Alexandre Julliard julliard at winehq.org
Tue Jul 21 09:25:11 CDT 2009


Module: tools
Branch: master
Commit: e0d59a8c831d4ad4e94440e6c6cbc7c76fb94965
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=e0d59a8c831d4ad4e94440e6c6cbc7c76fb94965

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Jul 21 09:13:51 2009 +0200

transl: 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, at files);




More information about the wine-cvs mailing list