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

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

new install and launching scripts

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 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 the install 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#setup sample collections
26cd web/sites/localsite/collect
27
28for f in */index; do
29 cd $f
30 if test -f indexfiles.tgz; then
31 tar xzf indexfiles.tgz
32 fi
33 cd ../../
34done
35
36cd $GSDL3HOME
37
38
39#edit the tomcat setclasspath script to add our classpath
40cat comms/jakarta/tomcat/bin/setclasspath.sh | sed 's,CLASSPATH=,CLASSPATH=\"$CLASSPATH\":,' > setclasspath.sh
41mv comms/jakarta/tomcat/bin/setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.bak.sh
42mv setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.sh
43
44#edit the server config file
45mv comms/jakarta/tomcat/conf/server.xml comms/jakarta/tomcat/conf/server.xml.orig
46cat 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
47
48#make everyone happy by giving the right permissions to the shell scripts
49chmod a+x comms/jakarta/tomcat/bin/*.sh
50
Note: See TracBrowser for help on using the repository browser.