source: trunk/gsdl3/gs3-prepare.sh@ 6458

Last change on this file since 6458 was 6458, checked in by kjdon, 20 years ago

now unpacks the soap stuff

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1#!/bin/sh
2
3#check that GSDL3HOME is set
4if test -z "$GSDL3HOME" ; then
5 echo "You need to 'source gs3-setup.sh' before running this script"
6 exit;
7fi
8
9cvsroot=:pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src
10
11# firstly, remove unwanted directories
12cvs -d $cvsroot update -dRP
13
14# now check out extra bits
15cd packages
16cvs -d $cvsroot co mgpp
17cd $GSDL3HOME
18
19# unpack tomcat and rename directory
20cd comms/jakarta/
21tar xzf tomcat-4.1.24.tar.gz
22mv jakarta-tomcat-4.1.24 tomcat
23cd $GSDL3HOME
24
25# unpack the soap stuff
26cd comms/soap
27tar xzf soap-bin-2.2.tar.gz
28mv soap-2_2 soap
29cd $GSDL3HOME
30
31#setup sample collections
32cd web/sites/localsite/collect
33
34for f in */index; do
35 cd $f
36 if test -f indexfiles.tgz; then
37 tar xzf indexfiles.tgz
38 fi
39 cd ../../
40done
41
42cd $GSDL3HOME
43
44
45#edit the tomcat setclasspath script to add our classpath
46cat comms/jakarta/tomcat/bin/setclasspath.sh | sed 's,CLASSPATH=,CLASSPATH=\"$CLASSPATH\":,' > setclasspath.sh
47mv comms/jakarta/tomcat/bin/setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.bak.sh
48mv setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.sh
49
50#edit the server config file
51mv comms/jakarta/tomcat/conf/server.xml comms/jakarta/tomcat/conf/server.xml.orig
52cat comms/jakarta/tomcat/conf/server.xml.orig | sed "s,<\!-- Tomcat Root Context -->,<\!-- GSDL3 Service --><Context path=\"/gsdl3\" docBase=\"@gsdl3home@/web\" debug=\"1\" reloadable=\"true\"><Resources allowLinking='true'/></Context><\!-- Tomcat Root Context -->," > comms/jakarta/tomcat/conf/server.xml.in
53
54#make everyone happy by giving the right permissions to the shell scripts
55chmod a+x comms/jakarta/tomcat/bin/*.sh
56
Note: See TracBrowser for help on using the repository browser.