source: greenstone3/trunk/gs3-server.sh@ 18343

Last change on this file since 18343 was 15132, checked in by oranfry, 16 years ago

don't try to run java unless search4j has found it

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