diff options
author | Justin Clark-Casey (justincc) | 2013-11-13 00:27:05 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-11-13 00:27:05 +0000 |
commit | d71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69 (patch) | |
tree | 47d47555a5af5a369ba0d16966a3a39e489a3411 | |
parent | Get runprebuild.sh to generate a vs2010 for xbuild to work with .NET 4 rather... (diff) | |
parent | Fix runprebuild.bat on Windows 7 systems and later (diff) | |
download | opensim-SC-d71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69.zip opensim-SC-d71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69.tar.gz opensim-SC-d71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69.tar.bz2 opensim-SC-d71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
-rwxr-xr-x | runprebuild.bat | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/runprebuild.bat b/runprebuild.bat index 0fd7bbf..5f75982 100755 --- a/runprebuild.bat +++ b/runprebuild.bat | |||
@@ -7,18 +7,24 @@ setlocal ENABLEEXTENSIONS | |||
7 | set KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" | 7 | set KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" |
8 | set VALUE_NAME=MSBuildToolsPath | 8 | set VALUE_NAME=MSBuildToolsPath |
9 | 9 | ||
10 | FOR /F "usebackq skip=4 tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( | 10 | rem We have to use find here as req query spits out 4 lines before Windows 7 |
11 | rem But 2 lines after Windows 7. Unfortunately, this screws up cygwin | ||
12 | rem as it uses its own find command. This could be fixed but it could be | ||
13 | rem complex to find the location of find on all windows systems | ||
14 | FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul ^| FIND "%VALUE_NAME%"`) DO ( | ||
11 | set ValueName=%%A | 15 | set ValueName=%%A |
12 | set ValueType=%%B | 16 | set ValueType=%%B |
13 | set ValueValue=%%C | 17 | set ValueValue=%%C |
14 | ) | 18 | ) |
15 | 19 | ||
16 | if defined ValueName ( | 20 | if defined ValueName ( |
21 | @echo Found msbuild path registry entry | ||
17 | @echo Value Name = %ValueName% | 22 | @echo Value Name = %ValueName% |
18 | @echo Value Type = %ValueType% | 23 | @echo Value Type = %ValueType% |
19 | @echo Value Value = %ValueValue% | 24 | @echo Value Value = %ValueValue% |
25 | @echo Creating compile.bat | ||
26 | @echo %ValueValue%\msbuild opensim.sln > compile.bat | ||
20 | ) else ( | 27 | ) else ( |
21 | @echo %KEY_NAME%\%VALUE_NAME% not found. | 28 | @echo %KEY_NAME%\%VALUE_NAME% not found. |
29 | @echo Not creating compile.bat | ||
22 | ) | 30 | ) |
23 | |||
24 | @echo %ValueValue%\msbuild opensim.sln > compile.bat | ||