source: trunk/gsdl3/setup.bat@ 4828

Last change on this file since 4828 was 3957, checked in by mdewsnip, 21 years ago

First attempt at Windows equivalent of setup.bash. Does much less, mainly due to the lack of standard Windows equivalents of sed and tar.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1@echo off
2
3if exist setup.bat goto dirOK
4 echo You must source the script from within the Greenstone home directory
5 goto end
6
7:dirOK
8
9:: Set the GSDL3HOME variable to the current directory
10:: This is an unbelievably disgusting process under Windows - improvements anyone?
11echo e 100 "set GSDL3HOME=" > sethome.tmp
12echo rcx >> sethome.tmp
13echo e >> sethome.tmp
14echo n sethome.bat >> sethome.tmp
15echo w >> sethome.tmp
16echo q >> sethome.tmp
17debug < sethome.tmp > nul
18del sethome.tmp
19cd >> sethome.bat
20call sethome.bat
21del sethome.bat
22echo GSDL3HOME: %GSDL3HOME%
23
24:: Set other important environment variables
25set GSDLOS=windows
26set PATH=%PATH%;%GSDL3HOME%\bin;%GSDL3HOME%\bin\script;%GSDL3HOME%\lib
27
28set CATALINA_HOME=%GSDL3HOME%\comms\tomcat\jakarta
29set CATALINA_OPTS="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=%GSDL3HOME% -DGSDLOS=%GSDLOS% -DGSDLHOME= -DPATH=%PATH%"
30
31:: Set the CLASSPATH environment variable
32:: This should work but doesn't: for %%j in (*.jar) do set CLASSPATH=%CLASSPATH%;%GSDL3HOME%\lib\java\%%j
33set CLASSPATH=%GSDL3HOME%\resources\java;%GSDL3HOME%\src\java;%CATALINA_HOME%\common\lib\servlet.jar
34cd %GSDL3HOME%\lib\java
35if exist setcp.bat del setcp.bat
36for %%j in (*.jar) do echo set CLASSPATH=%%CLASSPATH%%;%GSDL3HOME%\lib\java\%%j>> setcp.bat
37call setcp.bat
38del setcp.bat
39echo CLASSPATH: %CLASSPATH%
40
41cd %GSDL3HOME%
42:end
Note: See TracBrowser for help on using the repository browser.