source: greenstone3/trunk/bin/script/gs3-build.sh@ 18343

Last change on this file since 18343 was 10865, checked in by kjdon, 18 years ago

modified some print statements, added in GSDL3SRCHOME

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 572 bytes
Line 
1#!/bin/sh
2
3#check that GSDL3HOME is set
4if test -z "$GSDL3HOME" ; then
5 echo "You need to 'source gs3-setup.sh' in the greenstone3 directory before running this script"
6 exit;
7fi
8
9if test $# != 2; then
10 echo "Usage: gs3-build.sh <site name> <collection name>"
11 exit;
12fi
13
14sitename=$1
15collectionname=$2
16
17# we need to stop here if the database isn't running - how can we tell??
18java -DGSDL3HOME=$GSDL3HOME -DGSDL3SRCHOME=$GSDL3SRCHOME -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser org.greenstone.gsdl3.gs3build.Build -site $sitename -collect $collectionname
19
20
Note: See TracBrowser for help on using the repository browser.