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

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

more stuff to do for distributions

  • 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
37# this is just cos we want the shell scripts
38cd comms/jakarta/
39unzip jakarta-tomcat-4.1.30.zip
40mv jakarta-tomcat-4.1.30 tomcat
41
42#extract the soap jar file
43cd comms/soap
44unzip soap-bin-2.3.1.zip soap-2_3_1/lib/soap.jar
45cp soap-2_3_1/lib/soap.jar $GSDL3HOME/lib/java
46
47#edit the tomcat setclasspath script to add our classpath
48mv ./tomcat/bin/setclasspath.sh ./tomcat/bin/setclasspath.sh.orig
49cat ./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
52chmod a+x ./tomcat/bin/*.sh
53
54cd $GSDL3HOME
55
56#compile the test servlet
57source gs3-setup.sh
58cd web/WEB-INF/classes
59javac TestServlet.java
60cd $GSDL3HOME
61
62./configure
63make
64make install
65make distclean
66
67cd package/mysql
68zip -r mysql.zip bin gsinstall.bash include info lib libexec man mysql-4.0.16.tar.gz share
69cd $GSDL3HOME
70
71
72
73
Note: See TracBrowser for help on using the repository browser.