source: gs3-extensions/pharos/trunk/setup.bash@ 21209

Last change on this file since 21209 was 20985, checked in by davidb, 14 years ago

Minor tweaks to improve readability of echo statements

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