if [ ! -z $PHAROSHOME ] ; then echo "*Your environment is already set up for KMI Pharos Image Similarity Search" return 0 fi if [ ! -f "setup.bash" ] ; then echo "You must source the script from within the KMI Pharos hom directory" return 1 fi # Need to run this script from its own directory instead of whichever directory it may be called from thisdir=`pwd` if [ -z $GSDL3SRCHOME ] ; then cd ../.. source gs3-setup.sh cd "$thisdir" fi export PHAROSSRCHOME=`pwd` export PHAROSHOME=$PHAROSSRCHOME/web export PHAROSOS=$GSDLOS export PATH=$PHAROSSRCHOME/bin/script:$PHAROSSRCHOME/bin/$PHAROSOS:$PATH export DERBYDB_HOME=$PHAROSHOME/derbyDB export PHAROS_PREFIX_URL=http://localhost:8080/pharos echo "+Your environment is now set up for KMI Pharos Image Similarity Search" echo "++PHAROS_PREFIX_URL=$PHAROS_PREFIX_URL" echo "++To start DerbyDB: start-derby.sh" cd cmdline-api-srcpack ; source setup.bash ; cd .. return 0