Last change
on this file since 7772 was 7772, checked in by kjdon, 20 years ago |
run this script after a check out to get the source ready to make a distribution using installshieldX
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
Line | |
---|
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 | if test -z "$GSDL3HOME" ; then
|
---|
10 | source gs3-setup.sh
|
---|
11 | fi
|
---|
12 |
|
---|
13 | if test -z "$CVSROOT" ; then
|
---|
14 | echo "You need to set the environment variable CVSROOT before running"
|
---|
15 | echo "this script. Please use the same path that you used to check out"
|
---|
16 | echo "the Greentone repository. If you are not using anonymous cvs, you"
|
---|
17 | echo "also need to set the variable CVS_RSH to ssh."
|
---|
18 | exit;
|
---|
19 | fi
|
---|
20 |
|
---|
21 | # firstly, remove unwanted directories
|
---|
22 | cvs update -dRP
|
---|
23 |
|
---|
24 | # now check out extra bits
|
---|
25 | cd packages
|
---|
26 | cvs co mgpp
|
---|
27 | cd $GSDL3HOME
|
---|
28 |
|
---|
29 | # unpack tomcat and rename directory
|
---|
30 | # this is just cos we want the shell scripts
|
---|
31 | cd comms/jakarta/
|
---|
32 | tar xzf tomcat-4.1.24.tar.gz
|
---|
33 | mv jakarta-tomcat-4.1.24 tomcat
|
---|
34 | cd $GSDL3HOME
|
---|
35 |
|
---|
36 | #edit the tomcat setclasspath script to add our classpath
|
---|
37 | cat comms/jakarta/tomcat/bin/setclasspath.sh | sed 's,CLASSPATH=,CLASSPATH=\"$CLASSPATH\":,' > setclasspath.sh
|
---|
38 | mv comms/jakarta/tomcat/bin/setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.bak.sh
|
---|
39 | mv setclasspath.sh comms/jakarta/tomcat/bin/setclasspath.sh
|
---|
40 |
|
---|
41 | #make everyone happy by giving the right permissions to the shell scripts
|
---|
42 | chmod a+x comms/jakarta/tomcat/bin/*.sh
|
---|
43 |
|
---|
44 | cd $GSDL3HOME
|
---|
45 |
|
---|
46 | ./configure
|
---|
47 | make
|
---|
48 | make install
|
---|
49 | make distclean
|
---|
50 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.