source: trunk/gsdl3/gs3-prepare.bat@ 7326

Last change on this file since 7326 was 6472, checked in by mdewsnip, 20 years ago

Now unpacks NZmaps collection indexfiles.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1@echo off
2
3:: ---- Check that %GSDL3HOME% is set ----
4if not "%GSDL3HOME%" == "" goto start
5 echo You need to run gs3-setup.bat before running this 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 checkout 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
22del tomcat-4.1.24.tar
23
24:: ---- Edit the Tomcat setclasspath script to add our classpath ----
25echo Fixing setclasspath.bat...
26cd %GSDL3HOME%\comms\jakarta\tomcat\bin
27ren 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 ----
31echo Unpacking sample collections...
32cd %GSDL3HOME%\web\sites\localsite\collect
33
34cd chinesedemo\index
35"%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
36"%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
37del indexfiles.tar
38cd ..\..
39
40cd demo\index
41"%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
42"%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
43del indexfiles.tar
44cd ..\..
45
46cd gberg\index
47"%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
48"%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
49del indexfiles.tar
50cd ..\..
51
52cd mgppdemo\index
53"%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
54"%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
55del indexfiles.tar
56cd ..\..
57
58cd nzmaps\index
59"%GSDL3HOME%\winutil\gunzip.exe" indexfiles.tgz
60"%GSDL3HOME%\winutil\tar.exe" xf indexfiles.tar
61del indexfiles.tar
62cd ..\..
63
64cd %GSDL3HOME%
65
66:exit
Note: See TracBrowser for help on using the repository browser.