1 | #!/bin/sh
|
---|
2 |
|
---|
3 | if [ ! -f gs3-setup.sh ]; then
|
---|
4 | echo "You must run this script from within the Greenstone 3 home directory"
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 |
|
---|
8 | #check that GSDL3HOME is set
|
---|
9 | source gs3-setup.sh
|
---|
10 |
|
---|
11 | if 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;
|
---|
17 | fi
|
---|
18 |
|
---|
19 | # firstly, remove unwanted directories
|
---|
20 | cvs update -dRP
|
---|
21 |
|
---|
22 | # now check out extra bits
|
---|
23 | cd packages
|
---|
24 | cvs co -P mgpp
|
---|
25 | cd $GSDL3HOME
|
---|
26 |
|
---|
27 | cvs co -P gli
|
---|
28 | cd gli
|
---|
29 | ../makegli.sh
|
---|
30 | cd classes
|
---|
31 | jar cf GLI.jar org images META-INF/MANIFEST.MF *.properties
|
---|
32 | rm -r org
|
---|
33 | mv GLI.jar ../
|
---|
34 | cd $GSDL3HOME
|
---|
35 |
|
---|
36 | # unpack tomcat and rename directory
|
---|
37 | # this is just cos we want the shell scripts
|
---|
38 | cd comms/jakarta/
|
---|
39 | unzip jakarta-tomcat-4.1.30.zip
|
---|
40 | mv jakarta-tomcat-4.1.30 tomcat
|
---|
41 |
|
---|
42 | #extract the soap jar file
|
---|
43 | cd comms/soap
|
---|
44 | unzip soap-bin-2.3.1.zip soap-2_3_1/lib/soap.jar
|
---|
45 | cp soap-2_3_1/lib/soap.jar $GSDL3HOME/lib/java
|
---|
46 |
|
---|
47 | #edit the tomcat setclasspath script to add our classpath
|
---|
48 | mv ./tomcat/bin/setclasspath.sh ./tomcat/bin/setclasspath.sh.orig
|
---|
49 | cat ./tomcat/bin/setclasspath.sh.orig | sed 's,CLASSPATH=,CLASSPATH=\"$CLASSPATH\":,' > ./tomcat/bin/setclasspath.sh
|
---|
50 |
|
---|
51 | #make everyone happy by giving the right permissions to the shell scripts
|
---|
52 | chmod a+x ./tomcat/bin/*.sh
|
---|
53 |
|
---|
54 | cd $GSDL3HOME
|
---|
55 |
|
---|
56 | #compile the test servlet
|
---|
57 | source gs3-setup.sh
|
---|
58 | cd web/WEB-INF/classes
|
---|
59 | javac TestServlet.java
|
---|
60 | cd $GSDL3HOME
|
---|
61 |
|
---|
62 | ./configure
|
---|
63 | make
|
---|
64 | make install
|
---|
65 | make distclean
|
---|
66 |
|
---|
67 | cd package/mysql
|
---|
68 | zip -r mysql.zip bin gsinstall.bash include info lib libexec man mysql-4.0.16.tar.gz share
|
---|
69 | cd $GSDL3HOME
|
---|
70 |
|
---|
71 |
|
---|
72 |
|
---|
73 |
|
---|