source: trunk/gsdl3/install-nocvs.bash@ 6370

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

generalised the method for untaring index files - will now unpack any web/sites/localsite/collect/*/index/indexfiles.tgz that it finds

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1#!/bin/bash -v
2
3#check that GSDL3HOME is set
4if test -z "$GSDL3HOME" ; then
5 echo "You need to 'source setup.bash' before running the install script"
6 exit;
7fi
8
9#export CVS_RSH=ssh
10
11#if you dont have a greenstone_cvs account you can change to use anonymous
12# access. remember, password for anonymous access is 'anonymous'
13#export CVSROOT=:ext:@cvs.scms.waikato.ac.nz:/usr/local/global-cvs/gsdl-src
14#export CVSROOT=:pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src
15
16#make sure we have the current GSDL3 - this also prunes empty directories
17#cvs update -dRP
18
19# get mgpp
20cd packages
21# check out mgpp
22#cvs co mgpp
23#configure it and mg
24cd mgpp
25./configure --prefix $GSDL3HOME
26cd ../mg
27./configure --prefix $GSDL3HOME
28cd $GSDL3HOME
29
30
31# unpack tomcat and create symbolic link
32cd comms/jakarta/
33tar xzf tomcat-4.1.24.tar.gz
34ln -s jakarta-tomcat-4.1.24 tomcat
35cd $GSDL3HOME
36
37
38#setup sample collection
39cd web/sites/localsite/collect
40
41for f in */index; do
42 cd $f
43 if test -e indexfiles.tgz; then
44 tar xzf indexfiles.tgz
45 fi
46 cd ../../
47done
48
49cd $GSDL3HOME
50
51
52
53#set up tomcat
54#create symbolic links
55cd web
56ln -s -v ../lib
57cd $GSDL3HOME
58
59#set up the servlet information for tomcat
60cat web/WEB-INF/web.xml | sed "s&@gsdl3home@&$GSDL3HOME&" > web.xml.tmp
61mv web/WEB-INF/web.xml web/WEB-INF/web.bak.xml
62mv web.xml.tmp web/WEB-INF/web.xml
63
64#edit the setclasspath script to add our classpath
65cat comms/jakarta/tomcat/bin/setclasspath.sh | sed 's,CLASSPATH=,CLASSPATH=\"$CLASSPATH\":,' > setclasspath.sh
66mv comms/jakarta/tomcat/bin/setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.bak.sh
67mv setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.sh
68
69#edit the server config file
70cat comms/jakarta/tomcat/conf/server.xml | sed "s,<\!-- Tomcat Root Context -->,<\!-- GSDL3 Service --><Context path=\"/gsdl3\" docBase=\"$GSDL3HOME/web\" debug=\"1\" reloadable=\"true\"/><\!-- Tomcat Root Context -->," > server.xml
71mv comms/jakarta/tomcat/conf/server.xml comms/jakarta/tomcat/conf/server.bak.xml
72mv server.xml comms/jakarta/tomcat/conf/server.xml
73
74
75#make everyone happy by giving the right permissions to the shell scripts
76chmod a+x comms/jakarta/tomcat/bin/*.sh
77
78#now do the compiling etc by calling update.bash
79update-nocvs.bash
80
Note: See TracBrowser for help on using the repository browser.