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

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

modified these scripts so they don't polute the user's environment so much, to be more upfront about what their doing, and to make use of the search4j tool instead of searching and checking java with bash code

  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
RevLine 
[13235]1#!/bin/sh
2serverlang=en
3
[15131]4java_min_version=1.4.0_00
5
[13235]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
[14727]16 echo "This script must be run from the directory in which it resides."
[13235]17 exit 1
18fi
19
20## ---- Determine GSDL3SRCHOME ----
21gsdl3path=
22
23# Some users may set the above line manually
[14727]24if [ -z "$gsdl3path" ]; then
25 gsdl3path=`pwd`
[13235]26fi
27
[15131]28# Setup Greenstone3, unless it has already been done
[14727]29if [ -z "$GSDL3SRCHOME" ]; then
30 pushd $gsdl3path > /dev/null
31 source gs3-setup.sh
32 popd > /dev/null
[13235]33fi
34
35
[14727]36# JRE_HOME or JAVA_HOME must be set correctly to run this program
[15131]37`search4j -m $java_min_version -e` org.greenstone.server.Server $GSDL3SRCHOME
[13235]38
Note: See TracBrowser for help on using the repository browser.