[1/4] winemaker: Respect more spaces when splitting the options

André Hentschel nerv at dawncrow.de
Sat Nov 19 12:41:38 CST 2011


---
 tools/winemaker |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winemaker b/tools/winemaker
index 2ee79ea..64e92bd 100755
--- a/tools/winemaker
+++ b/tools/winemaker
@@ -604,7 +604,7 @@ sub source_scan_project_file($$$)
                 next;
             } elsif (/^# ADD CPP(.*)/ && $found_cfg==1) {
                 $prj_target_cflags=$1;
-                @prj_target_options=split(" /", $prj_target_cflags);
+                @prj_target_options=split(/\s+\//, $prj_target_cflags);
                 $prj_target_cflags="";
                 foreach ( @prj_target_options ) {
                     if ($_ eq "") {
@@ -736,7 +736,7 @@ sub source_scan_project_file($$$)
                 next;
             } elsif (/^# ADD LINK32(.*)/ && $found_cfg==1) {
                 $prj_target_ldflags=$1;
-                @prj_target_options=split(" /", $prj_target_ldflags);
+                @prj_target_options=split(/\s+\//, $prj_target_ldflags);
                 $prj_target_ldflags="";
                 $prj_target_libs=$prj_target_options[0];
                 $prj_target_libs=~s/\\/\//g;
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list