Fix msbuild integration install script.
authorHans Wennborg <hans@hanshq.net>
Thu, 10 Oct 2013 17:31:54 +0000 (17:31 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 10 Oct 2013 17:31:54 +0000 (17:31 +0000)
We previously failed to check whether the SUCCESS variable was set,
and would thus always exit with a failure if vs2012 didn't exist.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192370 91177308-0d34-0410-b5e6-96231b3b80d8

tools/msbuild/install.bat

index 2b66a6c01ae3d42b8ee19e632a00c25be470abfe..fb00d277b9c8e14f612c74d14ce2bb4d6af5a7e9 100644 (file)
@@ -18,8 +18,9 @@ IF EXIST %D% GOTO FOUND_V110
 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\PlatformToolsets"\r
 IF EXIST %D% GOTO FOUND_V110\r
 \r
-IF NOT SUCCESS == 1 echo Failed to find MSBuild toolsets directory.\r
-IF NOT SUCCESS == 1 goto FAILED\r
+IF %SUCCESS% == 1 goto DONE\r
+echo Failed to find MSBuild toolsets directory.\r
+goto FAILED\r
 \r
 \r
 :FOUND_V100\r
@@ -45,6 +46,8 @@ copy Microsoft.Cpp.Win32.LLVM-vs2012_xp.props %D%\LLVM-vs2012_xp
 IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
 copy Microsoft.Cpp.Win32.LLVM-vs2012_xp.targets %D%\LLVM-vs2012_xp\r
 IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+\r
+:DONE\r
 echo Done!\r
 goto END\r
 \r