diff options
author | UbitUmarov | 2019-04-05 03:25:02 +0100 |
---|---|---|
committer | UbitUmarov | 2019-04-05 03:25:02 +0100 |
commit | 8d272fb1d08275e4416c08fc82c054825d427467 (patch) | |
tree | 5b9ab8d78e614ee1d3db828978fa134a2bb689e9 | |
parent | change visible regions also by view range change; fix check on crossings (diff) | |
download | opensim-SC-8d272fb1d08275e4416c08fc82c054825d427467.zip opensim-SC-8d272fb1d08275e4416c08fc82c054825d427467.tar.gz opensim-SC-8d272fb1d08275e4416c08fc82c054825d427467.tar.bz2 opensim-SC-8d272fb1d08275e4416c08fc82c054825d427467.tar.xz |
mantis 8512: fix runprebuild
Diffstat (limited to '')
-rwxr-xr-x | runprebuild.bat | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/runprebuild.bat b/runprebuild.bat index 3ee1648..e5d7cb8 100755 --- a/runprebuild.bat +++ b/runprebuild.bat | |||
@@ -5,23 +5,23 @@ bin\Prebuild.exe /target vs2015 | |||
5 | setlocal ENABLEEXTENSIONS | 5 | setlocal ENABLEEXTENSIONS |
6 | set VALUE_NAME=MSBuildToolsPath | 6 | set VALUE_NAME=MSBuildToolsPath |
7 | 7 | ||
8 | if "%PROCESSOR_ARCHITECTURE%"=="x86" set PROGRAMS=%ProgramFiles% | ||
9 | if defined ProgramFiles(x86) set PROGRAMS=%ProgramFiles(x86)% | ||
10 | |||
8 | rem Try to find VS2019 | 11 | rem Try to find VS2019 |
9 | for %%e in (Enterprise Professional Community) do ( | 12 | for %%e in (Enterprise Professional Community) do ( |
10 | if exist "%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\MSBuild.exe" ( | 13 | if exist "%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\MSBuild.exe" ( |
11 | 14 | ||
12 | set ValueValue="%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\" | 15 | set ValueValue="%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\MSBuild" |
13 | goto :found | 16 | goto :found |
14 | ) | 17 | ) |
15 | ) | 18 | ) |
16 | 19 | ||
17 | rem try find vs2017 | 20 | rem try find vs2017 |
18 | if "%PROCESSOR_ARCHITECTURE%"=="x86" set PROGRAMS=%ProgramFiles% | ||
19 | if defined ProgramFiles(x86) set PROGRAMS=%ProgramFiles(x86)% | ||
20 | |||
21 | for %%e in (Enterprise Professional Community) do ( | 21 | for %%e in (Enterprise Professional Community) do ( |
22 | if exist "%PROGRAMS%\Microsoft Visual Studio\2017\%%e\MSBuild\15.0\Bin\MSBuild.exe" ( | 22 | if exist "%PROGRAMS%\Microsoft Visual Studio\2017\%%e\MSBuild\15.0\Bin\MSBuild.exe" ( |
23 | 23 | ||
24 | set ValueValue="%PROGRAMS%\Microsoft Visual Studio\2017\%%e\MSBuild\15.0\Bin\" | 24 | set ValueValue="%PROGRAMS%\Microsoft Visual Studio\2017\%%e\MSBuild\15.0\Bin\MSBuild" |
25 | goto :found | 25 | goto :found |
26 | ) | 26 | ) |
27 | ) | 27 | ) |
@@ -40,7 +40,7 @@ if defined FOUNDGREP ( | |||
40 | 40 | ||
41 | rem try vs2015 | 41 | rem try vs2015 |
42 | FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0" /v %VALUE_NAME% 2^>nul ^| %FINDCMD% "%VALUE_NAME%"`) DO ( | 42 | FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0" /v %VALUE_NAME% 2^>nul ^| %FINDCMD% "%VALUE_NAME%"`) DO ( |
43 | set ValueValue=%%C | 43 | set ValueValue=%%C\msbuild |
44 | goto :found | 44 | goto :found |
45 | ) | 45 | ) |
46 | 46 | ||
@@ -54,6 +54,6 @@ goto :done | |||
54 | :found | 54 | :found |
55 | @echo Found msbuild at %ValueValue% | 55 | @echo Found msbuild at %ValueValue% |
56 | @echo Creating compile.bat | 56 | @echo Creating compile.bat |
57 | @echo %ValueValue%\msbuild opensim.sln > compile.bat | 57 | @echo %ValueValue% opensim.sln > compile.bat |
58 | 58 | ||
59 | :done \ No newline at end of file | 59 | :done \ No newline at end of file |