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

Revision 21293, 1.1 KB (checked in by kjdon, 11 years ago)

add pharos to GSDL3EXTS

Line 
1
2
3if [ ! -z $PHAROSIS_HOME ] ; 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 PHAROSIS_SRC_HOME=`pwd`
26export PHAROSIS_HOME=$PHAROSIS_SRC_HOME/web
27export PHAROSOS=$GSDLOS
28
29export PATH=$PHAROSIS_SRC_HOME/bin/script:$PHAROSIS_SRC_HOME/bin/$PHAROSOS:$PATH
30export GSDL3EXTS=pharos:$GSDL3EXTS
31export DERBYDB_HOME=$PHAROSIS_HOME/derbyDB
32
33echo ""
34echo "+Your environment is now set up for KMI Pharos Image Similarity Search"
35
36echo "  - To start DerbyDB: pharos-start-derby.sh"
37echo "  - To stop  DerbyDB: pharos-stop-derby.sh"
38echo ""
39echo "  - To ingest image: pharos-imageis-add.pl collection file.jpg [doc-id]"
40echo "  - To delete image: pharos-imageis-delete.pl collection doc-id"
41echo "  - To ingest image: pharos-imageis-query.pl collection doc-id"
42echo ""
43
44return 0
45 
46 
Note: See TracBrowser for help on using the browser.