1 | #!/bin/sh
|
---|
2 |
|
---|
3 | #check that GSDL3HOME is set
|
---|
4 | if test -z "$GSDL3HOME" ; then
|
---|
5 | echo "You need to 'source gs3-setup.sh' before running this script"
|
---|
6 | exit;
|
---|
7 | fi
|
---|
8 |
|
---|
9 | cvsroot=:pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src
|
---|
10 |
|
---|
11 | # firstly, remove unwanted directories
|
---|
12 | cvs -d $cvsroot update -dRP
|
---|
13 |
|
---|
14 | # now check out extra bits
|
---|
15 | cd packages
|
---|
16 | cvs -d $cvsroot co mgpp
|
---|
17 | cd $GSDL3HOME
|
---|
18 |
|
---|
19 | # unpack tomcat and rename directory
|
---|
20 | cd comms/jakarta/
|
---|
21 | tar xzf tomcat-4.1.24.tar.gz
|
---|
22 | mv jakarta-tomcat-4.1.24 tomcat
|
---|
23 | cd $GSDL3HOME
|
---|
24 |
|
---|
25 | # unpack the soap stuff
|
---|
26 | cd comms/soap
|
---|
27 | tar xzf soap-bin-2.2.tar.gz
|
---|
28 | mv soap-2_2 soap
|
---|
29 | cd $GSDL3HOME
|
---|
30 |
|
---|
31 | #setup sample collections
|
---|
32 | cd web/sites/localsite/collect
|
---|
33 |
|
---|
34 | for f in */index; do
|
---|
35 | cd $f
|
---|
36 | if test -f indexfiles.tgz; then
|
---|
37 | tar xzf indexfiles.tgz
|
---|
38 | fi
|
---|
39 | cd ../../
|
---|
40 | done
|
---|
41 |
|
---|
42 | cd $GSDL3HOME
|
---|
43 |
|
---|
44 |
|
---|
45 | #edit the tomcat setclasspath script to add our classpath
|
---|
46 | cat comms/jakarta/tomcat/bin/setclasspath.sh | sed 's,CLASSPATH=,CLASSPATH=\"$CLASSPATH\":,' > setclasspath.sh
|
---|
47 | mv comms/jakarta/tomcat/bin/setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.bak.sh
|
---|
48 | mv setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.sh
|
---|
49 |
|
---|
50 | #edit the server config file
|
---|
51 | mv comms/jakarta/tomcat/conf/server.xml comms/jakarta/tomcat/conf/server.xml.orig
|
---|
52 | cat 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
|
---|
55 | chmod a+x comms/jakarta/tomcat/bin/*.sh
|
---|
56 |
|
---|