diff options
-rwxr-xr-x | runprebuild.bat | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/runprebuild.bat b/runprebuild.bat index 78ac8dc..f366175 100755 --- a/runprebuild.bat +++ b/runprebuild.bat | |||
@@ -33,19 +33,22 @@ if defined FOUNDGREP ( | |||
33 | set FINDCMD=find | 33 | set FINDCMD=find |
34 | ) | 34 | ) |
35 | 35 | ||
36 | 36 | rem try vs2015 | |
37 | for %%v in (14.0, 12.0, 4.0) do ( | 37 | FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14" /v %VALUE_NAME% 2^>nul ^| %FINDCMD% "%VALUE_NAME%"`) DO ( |
38 | FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\%%v" /v %VALUE_NAME% 2^>nul ^| %FINDCMD% "%VALUE_NAME%"`) DO ( | 38 | set ValueValue=%%C |
39 | set ValueValue=%%C | 39 | goto :found |
40 | goto :found | ||
41 | ) | ||
42 | ) | 40 | ) |
43 | 41 | ||
44 | @echo %KEY_NAME%\%VALUE_NAME% not found. | 42 | @echo msbuild for at least VS2015 not found, please install a (Community) edition of VS2017 or VS2015 |
45 | @echo Not creating compile.bat | 43 | @echo Not creating compile.bat |
46 | exit | 44 | if exist "compile.bat" ( |
45 | del compile.bat | ||
46 | ) | ||
47 | goto :done | ||
47 | 48 | ||
48 | :found | 49 | :found |
49 | @echo Found msbuild at %ValueValue% | 50 | @echo Found msbuild at %ValueValue% |
50 | @echo Creating compile.bat | 51 | @echo Creating compile.bat |
51 | @echo %ValueValue%\msbuild opensim.sln > compile.bat | 52 | @echo %ValueValue%\msbuild opensim.sln > compile.bat |
53 | |||
54 | :done \ No newline at end of file | ||