source: greenstone3/tags/3.03a/gs3-server.sh@ 19075

Last change on this file since 19075 was 14727, checked in by qq6, 17 years ago

looking for the JRE home first then the JAVA home while starting the gs3 server

  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
1#!/bin/sh
2serverlang=en
3
4echo "Greenstone 3 Server"
5echo "Copyright (C) 2006, New Zealand Digital Library Project, University Of Waikato"
6echo "This software comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt"
7echo "This is free software, and you are welcome to redistribute it"
8
9## -------- Run the Greenstone 3 Server --------
10
11# This script must be run from within the directory in which it lives
12thisdir=`pwd`
13if [ ! -f "${thisdir}/gs3-server.sh" ]; then
14 echo "This script must be run from the directory in which it resides."
15 exit 1
16fi
17
18## ---- Determine GSDL3SRCHOME ----
19gsdl3path=
20
21# Some users may set the above line manually
22if [ -z "$gsdl3path" ]; then
23 gsdl3path=`pwd`
24fi
25
26if [ -z "$GSDL3SRCHOME" ]; then
27 # Setup Greenstone3, unless it has already been done
28 pushd $gsdl3path > /dev/null
29 source gs3-setup.sh
30 popd > /dev/null
31fi
32
33
34# JRE_HOME or JAVA_HOME must be set correctly to run this program
35if [ -n "$RUNJAVA" ]; then
36 "$RUNJAVA" -cp $CLASSPATH org.greenstone.server.Server $GSDL3SRCHOME
37fi
38
Note: See TracBrowser for help on using the repository browser.