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

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

Elimination of cmdline-api-srcpack folder. Content moved to top level

File size: 1.2 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 IMAGEISHOME=`pwd`
30
31export PATH=$PHAROSSRCHOME/bin/script:$PHAROSSRCHOME/bin/$PHAROSOS:$PATH
32
33export DERBYDB_HOME=$PHAROSHOME/derbyDB
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"
41echo ""
42echo " - To ingest image: pharos-imageis-add.pl collection file.jpg [doc-id]"
43echo " - To delete image: pharos-imageis-delete.pl collection doc-id"
44echo " - To ingest image: pharos-imageis-query.pl collection doc-id"
45echo ""
46
47return 0
48
49
Note: See TracBrowser for help on using the repository browser.