aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-11-13 00:27:05 +0000
committerJustin Clark-Casey (justincc)2013-11-13 00:27:05 +0000
commitd71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69 (patch)
tree47d47555a5af5a369ba0d16966a3a39e489a3411
parentGet runprebuild.sh to generate a vs2010 for xbuild to work with .NET 4 rather... (diff)
parentFix runprebuild.bat on Windows 7 systems and later (diff)
downloadopensim-SC_OLD-d71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69.zip
opensim-SC_OLD-d71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69.tar.gz
opensim-SC_OLD-d71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69.tar.bz2
opensim-SC_OLD-d71ebb7ec8e0c9f5efd491c0ceddf80ccdaf6b69.tar.xz
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
-rwxr-xr-xrunprebuild.bat12
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
7set KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" 7set KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"
8set VALUE_NAME=MSBuildToolsPath 8set VALUE_NAME=MSBuildToolsPath
9 9
10FOR /F "usebackq skip=4 tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( 10rem We have to use find here as req query spits out 4 lines before Windows 7
11rem But 2 lines after Windows 7. Unfortunately, this screws up cygwin
12rem as it uses its own find command. This could be fixed but it could be
13rem complex to find the location of find on all windows systems
14FOR /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
16if defined ValueName ( 20if 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