[2/4] winemaker: ignore files not found by the search function

André Hentschel nerv at dawncrow.de
Tue Jun 22 11:01:07 CDT 2010


there would be a warning in search_from, but it is commented out for good reason. often there are non-existend files referenced in the project file for various reasons.
---
 tools/winemaker |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/winemaker b/tools/winemaker
index bed499d..78034fa 100755
--- a/tools/winemaker
+++ b/tools/winemaker
@@ -782,6 +782,7 @@ sub source_scan_project_file($$$)
             } elsif (/^SOURCE=(.*)$/) {
                 my @components=split /[\/\\]+/, $1;
                 $sfilet=search_from($path, \@components);
+                if (!defined $sfilet) { next; }
                 if ($sfilet =~ /\.c$/i and $sfilet !~ /\.(dbg|spec)\.c$/) {
                     push @sources_c,$sfilet;
                 } elsif ($sfilet =~ /\.(cpp|cxx)$/i) {
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list