Browse Source

Use Windows path separators in VC proj files

Ken Whatmough 12 years ago
parent
commit
702e60d05b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      newproject.sh

+ 4 - 2
newproject.sh

@@ -172,16 +172,18 @@ fi
 #############################################
 #############################################
 # Copy Microsoft Visual Studio project files
 # Copy Microsoft Visual Studio project files
 #############################################
 #############################################
+gpPathWin=$(echo $gpPath | sed 's*/*\\\\*g')
+
 cp "template/template.vcxproj" "$projPath/$projName.vcxproj"
 cp "template/template.vcxproj" "$projPath/$projName.vcxproj"
 aliassedinplace "s*TEMPLATE_PROJECT*$projName*g" "$projPath/$projName.vcxproj"
 aliassedinplace "s*TEMPLATE_PROJECT*$projName*g" "$projPath/$projName.vcxproj"
 aliassedinplace "s*TemplateGame*$className*g" "$projPath/$projName.vcxproj"
 aliassedinplace "s*TemplateGame*$className*g" "$projPath/$projName.vcxproj"
-aliassedinplace "s*GAMEPLAY_PATH*$gpPath*g" "$projPath/$projName.vcxproj"
+aliassedinplace "s*GAMEPLAY_PATH*$gpPathWin*g" "$projPath/$projName.vcxproj"
 
 
 cp "template/template.vcxproj.filters" "$projPath/$projName.vcxproj.filters"
 cp "template/template.vcxproj.filters" "$projPath/$projName.vcxproj.filters"
 aliassedinplace "s*TemplateGame*$className*g" "$projPath/$projName.vcxproj.filters"
 aliassedinplace "s*TemplateGame*$className*g" "$projPath/$projName.vcxproj.filters"
 
 
 cp "template/template.vcxproj.user" "$projPath/$projName.vcxproj.user"
 cp "template/template.vcxproj.user" "$projPath/$projName.vcxproj.user"
-aliassedinplace "s*GAMEPLAY_PATH*$gpPath*g" "$projPath/$projName.vcxproj.user"
+aliassedinplace "s*GAMEPLAY_PATH*$gpPathWin*g" "$projPath/$projName.vcxproj.user"
 
 
 
 
 #############################################
 #############################################