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

Last change on this file since 21602 was 21602, checked in by davidb, 11 years ago

comment change

File size: 1.2 KB
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 ImageIS home 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`
17taildir=${thisdir##*/}
18
19
20if [ -z $GSDL3SRCHOME ] ; then
21 cd ../..
22 source gs3-setup.sh
23 cd "$thisdir"
24fi
25
26export PHAROSIS_SRC_HOME=`pwd`
27export PHAROSIS_HOME=$PHAROSIS_SRC_HOME/web
28export PHAROSOS=$GSDLOS
29
30export PATH=$PHAROSIS_SRC_HOME/bin/script:$PHAROSIS_SRC_HOME/bin/$PHAROSOS:$PATH
31export GSDL3EXTS=$taildir:$GSDL3EXTS
32export DERBYDB_HOME=$PHAROSIS_HOME/derbyDB
33
34echo ""
35echo "+Your environment is now set up for KMI Pharos Image Similarity Search"
36
37echo " - To start DerbyDB: pharos-start-derby.sh"
38echo " - To stop DerbyDB: pharos-stop-derby.sh"
39echo ""
40echo " - To ingest image: pharos-imageis-add.pl collection file.jpg [doc-id]"
41echo " - To delete image: pharos-imageis-delete.pl collection doc-id"
42echo " - To ingest image: pharos-imageis-query.pl collection doc-id"
43echo ""
44
45return 0
46
47
Note: See TracBrowser for help on using the repository browser.