opensim-development – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 eva 1 @echo OFF
2  
3 bin\Prebuild.exe /target nant
4 bin\Prebuild.exe /target vs2010
5  
6 setlocal ENABLEEXTENSIONS
7 set KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"
8 set VALUE_NAME=MSBuildToolsPath
9  
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 (
15 set ValueName=%%A
16 set ValueType=%%B
17 set ValueValue=%%C
18 )
19  
20 if defined ValueName (
21 @echo Found msbuild path registry entry
22 @echo Value Name = %ValueName%
23 @echo Value Type = %ValueType%
24 @echo Value Value = %ValueValue%
25 @echo Creating compile.bat
26 @echo %ValueValue%\msbuild opensim.sln > compile.bat
27 ) else (
28 @echo %KEY_NAME%\%VALUE_NAME% not found.
29 @echo Not creating compile.bat
30 )