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

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

now uses the users cvs root

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 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
9if test -z "$CVSROOT" ; then
10 echo "You need to set the environment variable CVSROOT before running"
11 echo "this script. Please use the same path that you used to check out"
12 echo "the Greentone repository. If you are not using anonymous cvs, you"
13 echo "also need to set the variable CVS_RSH to ssh."
14 exit;
15fi
16
17# firstly, remove unwanted directories
18cvs update -dRP
19
20# now check out extra bits
21cd packages
22cvs co mgpp
23cd $GSDL3HOME
24
25# unpack tomcat and rename directory
26cd comms/jakarta/
27tar xzf tomcat-4.1.24.tar.gz
28mv jakarta-tomcat-4.1.24 tomcat
29cd $GSDL3HOME
30
31# unpack the soap stuff
32cd comms/soap
33tar xzf soap-bin-2.2.tar.gz
34mv soap-2_2 soap
35cd $GSDL3HOME
36
37#setup sample collections
38cd web/sites/localsite/collect
39
40for f in */index; do
41 cd $f
42 if test -f indexfiles.tgz; then
43 tar xzf indexfiles.tgz
44 fi
45 cd ../../
46done
47
48cd $GSDL3HOME
49
50
51#edit the tomcat setclasspath script to add our classpath
52cat comms/jakarta/tomcat/bin/setclasspath.sh | sed 's,CLASSPATH=,CLASSPATH=\"$CLASSPATH\":,' > setclasspath.sh
53mv comms/jakarta/tomcat/bin/setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.bak.sh
54mv setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.sh
55
56#edit the server config file
57mv comms/jakarta/tomcat/conf/server.xml comms/jakarta/tomcat/conf/server.xml.orig
58cat 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
59
60#make everyone happy by giving the right permissions to the shell scripts
61chmod a+x comms/jakarta/tomcat/bin/*.sh
62
Note: See TracBrowser for help on using the repository browser.