source: local/greenstone2/windows-64bit/devel64-in32mode.bat@ 31423

Last change on this file since 31423 was 31423, checked in by ak19, 5 years ago

With the recent commits 31421 and 31422, GS2 along with the included apache httpd 2 compile successfully again. The local\devel.bat file no longer needs to wipe out the existing PATH and overwrite it with a more limited one.

File size: 2.6 KB
1:: This script is called devel.bat NOT setup.bat, because firstly, it is for compiling GS2
2:: and secondly, this script wipes out PATH and sets it from scratch. Running the toplevel GS2 setup.bat
3:: will invoke any setup.bat in this local folder, and if this script were called setup.bat it would wipe
4:: out the Greenstone PATH environment as adjusted by GS2 so we'd not be able to run any Greenstone scripts
5:: despite sourcing GS2's toplevel setup.bat. Hence this script is called devel.bat.
8:: Get the strawberry perl we use for GS from
9:: this is referred to below as strawberry-perl32no64
11set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_55
13:: NOTE: we are indeed wiping out PATH and setting it from scratch. This follows what the releasekits do each night when generating GS2-caveat
14:: and that always seems to successfully compile apache-httpd in one go. So after setting PATH from scratch here, we only need to worry about
15:: race conditions affecting GS2 compiling (particularly apache-httpd) on recompile of GS2. In that case, just delete gs2-svn\apache-httpd\windows\error
16:: and retry recompilation with makegs2x64.bat, or just plain retry recompilation with that script.
18set PATH=%JAVA_HOME%\bin;C:\strawberry-perl32no64\perl\bin;C:\Program Files\SlikSvn\bin;%PATH%
20::set PATH=%JAVA_HOME%\bin;C:\strawberry-perl32no64\perl\bin;C:\Program Files\SlikSvn\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\putty;C:\Program Files (x86)\linuxtools
21::set PATH=%JAVA_HOME%\bin;C:\strawberry-perl32no64\perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
22:: REMOVING CMake from PATH:
23rem C:\Program Files (x86)\Java\jdk1.8.0_65\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft Windows Performance Toolkit\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\nodejs\;C:\Program Files\SlikSvn\bin;C:\Program Files\Git\cmd;C:\Users\Anupama\AppData\Roaming\npm
24rem %PATH%
26:: Microsoft SDK is needed only if compiling GS2 with debugging on,
27:: but regular compiling (without debugging on) will also work with MS SDK environment:
28pushd "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin"
29call "SetEnv.Cmd"
32:: MS Visual Studio needed to compile GS2
33pushd "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\"
34call vsvars32.bat
Note: See TracBrowser for help on using the repository browser.