source: trunk/gsdl3/gs3-prepare-for-dist.sh@ 7876

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

do more stuff here instead of in the installer

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1#!/bin/sh
2
3if [ ! -f gs3-setup.sh ]; then
4 echo "You must run this script from within the Greenstone 3 home directory"
5 exit 1
6fi
7
8#check that GSDL3HOME is set
9source gs3-setup.sh
10
11if test -z "$CVSROOT" ; then
12 echo "You need to set the environment variable CVSROOT before running"
13 echo "this script. Please use the same path that you used to check out"
14 echo "the Greentone repository. If you are not using anonymous cvs, you"
15 echo "also need to set the variable CVS_RSH to ssh."
16 exit;
17fi
18
19# firstly, remove unwanted directories
20cvs update -dRP
21
22# now check out extra bits
23cd packages
24cvs co -P mgpp
25cd $GSDL3HOME
26
27cvs co -P gli
28cd gli
29../makegli.sh
30cd classes
31jar cf GLI.jar org images META-INF/MANIFEST.MF *.properties
32rm -r org
33mv GLI.jar ../
34cd $GSDL3HOME
35
36# unpack tomcat and rename directory
37cd comms/jakarta/
38unzip jakarta-tomcat-4.1.30.zip
39mv jakarta-tomcat-4.1.30 tomcat
40
41#edit the tomcat setclasspath script to add our classpath
42mv ./tomcat/bin/setclasspath.sh ./tomcat/bin/setclasspath.sh.orig
43cat ./tomcat/bin/setclasspath.sh.orig | sed 's,CLASSPATH=,CLASSPATH=\"$CLASSPATH\":,' > ./tomcat/bin/setclasspath.sh
44
45#make everyone happy by giving the right permissions to the shell scripts
46chmod a+x ./tomcat/bin/*.sh
47
48#rename server.xml files
49mv ./tomcat/conf/server.xml ./tomcat/conf/server-withexamples.xml.config
50mv ./tomcat/conf/server-noexamples.xml.config ./tomcat/conf/server.xml
51cd $GSDL3HOME
52
53#extract the soap jar file
54cd comms/soap
55unzip soap-bin-2.3.1.zip
56mv soap-2_3_1 soap
57cp soap/lib/soap.jar $GSDL3HOME/lib/java
58
59
60cd $GSDL3HOME
61
62#compile the test servlet
63source gs3-setup.sh
64cd web/WEB-INF/classes
65javac TestServlet.java
66cd $GSDL3HOME
67
68./configure
69make
70make install
71make distclean
72
73cd $GSDL3HOME
74
75
76
77
Note: See TracBrowser for help on using the repository browser.