source: trunk/gsdl3/install.bat@ 6335

Last change on this file since 6335 was 6293, checked in by mdewsnip, 20 years ago

Many improvements to Windows scripts. Now uses some utilities (gunzip, sed, setvar and tar) to make things easier and the scripts more powerful.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1@echo off
2
3:: ---- Check that %GSDL3HOME% is set ----
4if not "%GSDL3HOME%" == "" goto start
5 echo You need to run setup.bat before running this install file
6 goto exit
7
8:start
9:: ---- Make sure we have the current GSDL3 (also prunes empty directories) ----
10cvs update -dRP
11
12:: ---- Check out mgpp ----
13cd %GSDL3HOME%\packages
14cvs co mgpp
15
16:: ---- Unpack Tomcat and rename folder ----
17echo Unpacking Tomcat...
18cd %GSDL3HOME%\comms\jakarta
19"%GSDL3HOME%\winutil\gunzip.exe" tomcat-4.1.24.tar.gz
20"%GSDL3HOME%\winutil\tar.exe" xf tomcat-4.1.24.tar
21ren jakarta-tomcat-4.1.24 tomcat
22
23:: ---- Edit the Tomcat setclasspath script to add our classpath ----
24echo Fixing setclasspath.bat...
25cd %GSDL3HOME%\comms\jakarta\tomcat\bin
26ren setclasspath.bat setclasspath.bat.orig
27"%GSDL3HOME%\winutil\sed.exe" 's,set CLASSPATH=,set CLASSPATH="%%CLASSPATH%%":,' setclasspath.bat.orig > setclasspath.bat
28
29:: ---- Unpack the sample collections ----
30echo Unpacking sample collections...
31cd %GSDL3HOME%\web\sites\localsite\collect
32
33cd chinesedemo\index
34"%GSDL3HOME%\winutil\gunzip.exe" chinese-index-files.tar.gz
35"%GSDL3HOME%\winutil\tar.exe" xf chinese-index-files.tar
36cd ..\..
37
38cd demo\index
39"%GSDL3HOME%\winutil\gunzip.exe" mg-indexfiles.tar.gz
40"%GSDL3HOME%\winutil\tar.exe" xf mg-indexfiles.tar
41cd ..\..
42
43cd gberg\index
44"%GSDL3HOME%\winutil\gunzip.exe" gberg-indexfiles.tgz
45"%GSDL3HOME%\winutil\tar.exe" xf gberg-indexfiles.tar
46cd ..\..
47
48cd mgppdemo\index
49"%GSDL3HOME%\winutil\gunzip.exe" mgpp-indexfiles.tar.gz
50"%GSDL3HOME%\winutil\tar.exe" xf mgpp-indexfiles.tar
51cd ..\..
52
53:: ---- Enter the correct paths in various files ----
54if "%1" == "-for_distribution" goto done
55
56 :: ---- Set up the servlet information for Tomcat ----
57 echo Setting up servlet information for Tomcat...
58 cd %GSDL3HOME%\web\WEB-INF
59 echo %GSDL3HOME%| "%GSDL3HOME%\winutil\sed.exe" 's,\\,\\\\,g' | "%GSDL3HOME%\winutil\setvar.exe" GSDL3HOME_ESCAPED >setgsdl3e.bat
60 call setgsdl3e.bat
61 del setgsdl3e.bat
62 "%GSDL3HOME%\winutil\sed.exe" 's,@gsdl3home@,%GSDL3HOME_ESCAPED%,' web.xml.in > web.xml
63 set GSDL3HOME_ESCAPED=
64
65:done
66cd %GSDL3HOME%
67
68:exit
Note: See TracBrowser for help on using the repository browser.