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

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

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

File size: 1.3 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
35export PHAROS_PREFIX_URL=http://localhost:8080/pharos
36
37echo ""
38echo "+Your environment is now set up for KMI Pharos Image Similarity Search"
39echo " - PHAROS_PREFIX_URL=$PHAROS_PREFIX_URL"
40
41echo " - To start DerbyDB: pharos-start-derby.sh"
42echo " - To stop DerbyDB: pharos-stop-derby.sh"
43echo ""
44echo " - To ingest image: pharos-imageis-add.pl collection file.jpg [doc-id]"
45echo " - To delete image: pharos-imageis-delete.pl collection doc-id"
46echo " - To ingest image: pharos-imageis-query.pl collection doc-id"
47
48cd cmdline-api-srcpack ; source setup.bash ; cd ..
49
50return 0
51
52
Note: See TracBrowser for help on using the repository browser.