aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/runprebuild.bat
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-11-03 21:44:39 +1000
committerDavid Walter Seikel2016-11-03 21:44:39 +1000
commit134f86e8d5c414409631b25b8c6f0ee45fbd8631 (patch)
tree216b89d3fb89acfb81be1e440c25c41ab09fa96d /runprebuild.bat
parentMore changing to production grid. Double oops. (diff)
downloadopensim-SC_OLD-134f86e8d5c414409631b25b8c6f0ee45fbd8631.zip
opensim-SC_OLD-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.gz
opensim-SC_OLD-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.bz2
opensim-SC_OLD-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.xz
Initial update to OpenSim 0.8.2.1 source code.
Diffstat (limited to 'runprebuild.bat')
-rwxr-xr-xrunprebuild.bat38
1 files changed, 36 insertions, 2 deletions
diff --git a/runprebuild.bat b/runprebuild.bat
index 8927e9a..ed2def1 100755
--- a/runprebuild.bat
+++ b/runprebuild.bat
@@ -1,4 +1,38 @@
1@echo OFF
2
1bin\Prebuild.exe /target nant 3bin\Prebuild.exe /target nant
2bin\Prebuild.exe /target vs2008 4bin\Prebuild.exe /target vs2010
3echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild opensim.sln > compile.bat 5
6setlocal ENABLEEXTENSIONS
7set KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"
8set VALUE_NAME=MSBuildToolsPath
9
10rem We have to use grep or find to locate the correct line, because reg query spits
11rem out 4 lines before Windows 7 but 2 lines after Windows 7.
12rem We use grep if it's on the path; otherwise we use the built-in find command
13rem from Windows. (We must use grep on Cygwin because it overrides the "find" command.)
14
15for %%X in (grep.exe) do (set FOUNDGREP=%%~$PATH:X)
16if defined FOUNDGREP (
17 set FINDCMD=grep
18) else (
19 set FINDCMD=find
20)
21
22FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul ^| %FINDCMD% "%VALUE_NAME%"`) DO (
23 set ValueName=%%A
24 set ValueType=%%B
25 set ValueValue=%%C
26)
4 27
28if defined ValueName (
29 @echo Found msbuild path registry entry
30 @echo Value Name = %ValueName%
31 @echo Value Type = %ValueType%
32 @echo Value Value = %ValueValue%
33 @echo Creating compile.bat
34 @echo %ValueValue%\msbuild opensim.sln > compile.bat
35) else (
36 @echo %KEY_NAME%\%VALUE_NAME% not found.
37 @echo Not creating compile.bat
38)