[6402] | 1 | @echo off
|
---|
| 2 |
|
---|
| 3 | :: ---- Check that %GSDL3HOME% is set ----
|
---|
| 4 | if not "%GSDL3HOME%" == "" goto start
|
---|
[6411] | 5 | echo You need to run gs3-setup.bat before running this file
|
---|
[6402] | 6 | goto exit
|
---|
| 7 |
|
---|
| 8 | :start
|
---|
| 9 | :: ---- Make sure we have the current GSDL3 (also prunes empty directories) ----
|
---|
| 10 | cvs update -dRP
|
---|
| 11 |
|
---|
[6411] | 12 | :: ---- Check out MGPP ----
|
---|
[6402] | 13 | cd %GSDL3HOME%\packages
|
---|
[6411] | 14 | cvs checkout mgpp
|
---|
[6402] | 15 |
|
---|
| 16 | :: ---- Unpack Tomcat and rename folder ----
|
---|
| 17 | echo Unpacking Tomcat...
|
---|
| 18 | cd %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
|
---|
| 21 | ren jakarta-tomcat-4.1.24 tomcat
|
---|
| 22 | del tomcat-4.1.24.tar
|
---|
| 23 |
|
---|
| 24 | :: ---- Edit the Tomcat setclasspath script to add our classpath ----
|
---|
| 25 | echo Fixing setclasspath.bat...
|
---|
| 26 | cd %GSDL3HOME%\comms\jakarta\tomcat\bin
|
---|
| 27 | ren setclasspath.bat setclasspath.bat.orig
|
---|
| 28 | "%GSDL3HOME%\winutil\sed.exe" 's,set CLASSPATH=,set CLASSPATH=%%CLASSPATH%%;,' setclasspath.bat.orig > setclasspath.bat
|
---|
| 29 |
|
---|
| 30 | :: ---- Unpack the sample collections ----
|
---|
| 31 | echo Unpacking sample collections...
|
---|
| 32 | cd %GSDL3HOME%\web\sites\localsite\collect
|
---|
| 33 |
|
---|
| 34 | cd chinesedemo\index
|
---|
| 35 | "%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
|
---|
| 36 | "%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
|
---|
| 37 | del indexfiles.tar
|
---|
| 38 | cd ..\..
|
---|
| 39 |
|
---|
| 40 | cd demo\index
|
---|
| 41 | "%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
|
---|
| 42 | "%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
|
---|
| 43 | del indexfiles.tar
|
---|
| 44 | cd ..\..
|
---|
| 45 |
|
---|
| 46 | cd gberg\index
|
---|
| 47 | "%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
|
---|
| 48 | "%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
|
---|
| 49 | del indexfiles.tar
|
---|
| 50 | cd ..\..
|
---|
| 51 |
|
---|
| 52 | cd mgppdemo\index
|
---|
| 53 | "%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
|
---|
| 54 | "%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
|
---|
| 55 | del indexfiles.tar
|
---|
| 56 | cd ..\..
|
---|
| 57 |
|
---|
[6472] | 58 | cd nzmaps\index
|
---|
| 59 | "%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
|
---|
| 60 | "%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
|
---|
| 61 | del indexfiles.tar
|
---|
| 62 | cd ..\..
|
---|
| 63 |
|
---|
[6402] | 64 | cd %GSDL3HOME%
|
---|
| 65 |
|
---|
| 66 | :exit
|
---|