source: local/greenstone2/windows-64bit/setup.bat@ 29050

Last change on this file since 29050 was 29050, checked in by ak19, 10 years ago

Some error checking to the developers' setup.bat, so that we are told if any environment var paths are not found

File size: 1.5 KB
Line 
1@echo off
2echo.
3echo ******************************
4
5set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_45
6if not exist "%JAVA_HOME%" echo %JAVA_HOME% does not exist& goto done
7set PATH=%JAVA_HOME%\bin;%PATH%
8
9echo + Set JAVA_HOME=%JAVA_HOME% and updated PATH
10
11set PERL_HOME=C:\Perl64
12if not exist "%PERL_HOME%" echo %PERL_HOME% does not exist& goto done
13set PATH=%PERL_HOME%\bin;%PATH%
14
15echo + Set PERL_PATH=%PERL_HOME% and updated PATH
16
17:: call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
18set vclocation=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
19if not exist "%vclocation%" echo %vclocation% does not exist& goto done
20pushd "%vclocation%"
21call vcvarsall.bat amd64
22popd
23
24:: http://go4answers.webhost4life.com/Example/windows-sdk-v70a-setenvbat-218785.aspx
25:: explains that SetEnv.cmd does exist in the new Microsoft SDK:
26:: C:\Windows\System32\cmd.exe /E:ON /V:ON /T:0E /K "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd"
27:: (Unused: http://stackoverflow.com/questions/887894/how-to-find-windows-sdks-setenv-cmd-setenv-cmd-does-not-work-correctly )
28
29::call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd"
30:: Run with /? to see what options it takes (/x86, /x64, /ia64, /vista, /xp, /win7 and more)
31set sdklocation=C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
32if not exist "%sdklocation%" echo %sdklocation% does not exist& goto done
33pushd "%sdklocation%"
34call SetEnv.cmd /x86
35popd
36
37:done
38echo Leaving local/setup.bat
39echo ******************************
40echo.
Note: See TracBrowser for help on using the repository browser.