winemaker: replace whitespaces in projectnames

André Hentschel nerv at dawncrow.de
Sat Nov 21 11:13:44 CST 2009


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

diff --git a/tools/winemaker b/tools/winemaker
index e077db2..4cd46ff 100755
--- a/tools/winemaker
+++ b/tools/winemaker
@@ -582,6 +582,7 @@ sub source_scan_project_file($$$)
 
             if (/^\# Microsoft Developer Studio Project File - Name=\"([^\"]+)/) {
                 $prj_name="$1";
+                $prj_name=~s/\s+/_/g;
                 #print $prj_name;
                 next;
             } elsif (/^# TARGTYPE/) {
@@ -852,6 +853,7 @@ sub source_scan_project_file($$$)
             foreach my $vc_project_attr ($vc_project->attributes) {
                 if ($vc_project_attr->getName eq "Name") {
                     $prj_name=$vc_project_attr->getValue;
+                    $prj_name=~s/\s+/_/g;
                     last;
                 }
             }
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list