root/gs3-extensions/pharos/trunk/setup.bash @ 20983

Revision 20983, 0.9 KB (checked in by davidb, 10 years ago)

Initial files for Phrasos extension to Greenstone3

Line 
1
2
3if [ ! -z $PHAROSHOME ] ; then
4  echo "*Your environment is already set up for KMI Pharos Image Similarity Search"
5  return 0
6fi
7
8
9if [ ! -f "setup.bash" ] ; then
10  echo "You must source the script from within the KMI Pharos hom directory"
11  return 1
12fi
13
14# Need to run this script from its own directory instead of whichever directory it may be called from
15thisdir=`pwd`
16
17
18if [ -z $GSDL3SRCHOME ] ; then
19  cd ../..
20  source gs3-setup.sh
21  cd "$thisdir"
22fi
23
24export PHAROSSRCHOME=`pwd`
25export PHAROSHOME=$PHAROSSRCHOME/web
26export PHAROSOS=$GSDLOS
27
28export PATH=$PHAROSSRCHOME/bin/script:$PHAROSSRCHOME/bin/$PHAROSOS:$PATH
29
30export DERBYDB_HOME=$PHAROSHOME/derbyDB
31
32export PHAROS_PREFIX_URL=http://localhost:8080/pharos
33
34echo "+Your environment is now set up for KMI Pharos Image Similarity Search"
35echo "++PHAROS_PREFIX_URL=$PHAROS_PREFIX_URL"
36
37echo "++To start DerbyDB: start-derby.sh"
38
39cd cmdline-api-srcpack ; source setup.bash ; cd ..
40
41return 0
42 
43 
Note: See TracBrowser for help on using the browser.