aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/runprebuild.bat
diff options
context:
space:
mode:
authorUbitUmarov2018-11-27 13:02:12 +0000
committerUbitUmarov2018-11-27 13:02:12 +0000
commit46defa5d318a71d682918b039170dd9b89bbe313 (patch)
tree83a9c06e74dfca717805fe1feabfc8903cc5b841 /runprebuild.bat
parentremove option vs2010 from runprebuild.sh (diff)
downloadopensim-SC-46defa5d318a71d682918b039170dd9b89bbe313.zip
opensim-SC-46defa5d318a71d682918b039170dd9b89bbe313.tar.gz
opensim-SC-46defa5d318a71d682918b039170dd9b89bbe313.tar.bz2
opensim-SC-46defa5d318a71d682918b039170dd9b89bbe313.tar.xz
change runprebuild.bat to not create compile.bat if msbuild for vs2017 or vs2017 not found
Diffstat (limited to 'runprebuild.bat')
-rwxr-xr-xrunprebuild.bat19
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 36rem try vs2015
37for %%v in (14.0, 12.0, 4.0) do ( 37FOR /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
46exit 44if exist "compile.bat" (
45 del compile.bat
46 )
47goto :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