Last change
on this file since 21297 was 21297, checked in by kjdon, 14 years ago |
use the directory name in GSDL3EXTS rather than hard-coding pharos as it may be checked out with a different name
|
File size:
1.2 KB
|
Rev | Line | |
---|
[20983] | 1 |
|
---|
| 2 |
|
---|
[21256] | 3 | if [ ! -z $PHAROSIS_HOME ] ; then
|
---|
[20985] | 4 | echo ""
|
---|
[20983] | 5 | echo "*Your environment is already set up for KMI Pharos Image Similarity Search"
|
---|
| 6 | return 0
|
---|
| 7 | fi
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | if [ ! -f "setup.bash" ] ; then
|
---|
| 11 | echo "You must source the script from within the KMI Pharos hom directory"
|
---|
| 12 | return 1
|
---|
| 13 | fi
|
---|
| 14 |
|
---|
| 15 | # Need to run this script from its own directory instead of whichever directory it may be called from
|
---|
| 16 | thisdir=`pwd`
|
---|
[21297] | 17 | taildir=${thisdir##*/}
|
---|
[20983] | 18 |
|
---|
| 19 |
|
---|
| 20 | if [ -z $GSDL3SRCHOME ] ; then
|
---|
| 21 | cd ../..
|
---|
| 22 | source gs3-setup.sh
|
---|
| 23 | cd "$thisdir"
|
---|
| 24 | fi
|
---|
| 25 |
|
---|
[21250] | 26 | export PHAROSIS_SRC_HOME=`pwd`
|
---|
| 27 | export PHAROSIS_HOME=$PHAROSIS_SRC_HOME/web
|
---|
[20983] | 28 | export PHAROSOS=$GSDLOS
|
---|
| 29 |
|
---|
[21250] | 30 | export PATH=$PHAROSIS_SRC_HOME/bin/script:$PHAROSIS_SRC_HOME/bin/$PHAROSOS:$PATH
|
---|
[21297] | 31 | export GSDL3EXTS=$taildir:$GSDL3EXTS
|
---|
[21250] | 32 | export DERBYDB_HOME=$PHAROSIS_HOME/derbyDB
|
---|
[20983] | 33 |
|
---|
[20985] | 34 | echo ""
|
---|
[20983] | 35 | echo "+Your environment is now set up for KMI Pharos Image Similarity Search"
|
---|
| 36 |
|
---|
[20985] | 37 | echo " - To start DerbyDB: pharos-start-derby.sh"
|
---|
| 38 | echo " - To stop DerbyDB: pharos-stop-derby.sh"
|
---|
[21242] | 39 | echo ""
|
---|
| 40 | echo " - To ingest image: pharos-imageis-add.pl collection file.jpg [doc-id]"
|
---|
| 41 | echo " - To delete image: pharos-imageis-delete.pl collection doc-id"
|
---|
| 42 | echo " - To ingest image: pharos-imageis-query.pl collection doc-id"
|
---|
[21249] | 43 | echo ""
|
---|
[20983] | 44 |
|
---|
| 45 | return 0
|
---|
| 46 |
|
---|
| 47 | |
---|
Note:
See
TracBrowser
for help on using the repository browser.