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
|
Rev | Line | |
---|
[20983] | 1 |
|
---|
| 2 |
|
---|
| 3 | if [ ! -z $PHAROSHOME ] ; 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`
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | if [ -z $GSDL3SRCHOME ] ; then
|
---|
| 20 | cd ../..
|
---|
| 21 | source gs3-setup.sh
|
---|
| 22 | cd "$thisdir"
|
---|
| 23 | fi
|
---|
| 24 |
|
---|
| 25 | export PHAROSSRCHOME=`pwd`
|
---|
| 26 | export PHAROSHOME=$PHAROSSRCHOME/web
|
---|
| 27 | export PHAROSOS=$GSDLOS
|
---|
| 28 |
|
---|
[21242] | 29 | export IMAGEISHOME=`pwd`
|
---|
| 30 |
|
---|
[20983] | 31 | export PATH=$PHAROSSRCHOME/bin/script:$PHAROSSRCHOME/bin/$PHAROSOS:$PATH
|
---|
| 32 |
|
---|
| 33 | export DERBYDB_HOME=$PHAROSHOME/derbyDB
|
---|
| 34 |
|
---|
| 35 | export PHAROS_PREFIX_URL=http://localhost:8080/pharos
|
---|
| 36 |
|
---|
[20985] | 37 | echo ""
|
---|
[20983] | 38 | echo "+Your environment is now set up for KMI Pharos Image Similarity Search"
|
---|
[20985] | 39 | echo " - PHAROS_PREFIX_URL=$PHAROS_PREFIX_URL"
|
---|
[20983] | 40 |
|
---|
[20985] | 41 | echo " - To start DerbyDB: pharos-start-derby.sh"
|
---|
| 42 | echo " - To stop DerbyDB: pharos-stop-derby.sh"
|
---|
[21242] | 43 | echo ""
|
---|
| 44 | echo " - To ingest image: pharos-imageis-add.pl collection file.jpg [doc-id]"
|
---|
| 45 | echo " - To delete image: pharos-imageis-delete.pl collection doc-id"
|
---|
| 46 | echo " - To ingest image: pharos-imageis-query.pl collection doc-id"
|
---|
[20983] | 47 |
|
---|
| 48 | cd cmdline-api-srcpack ; source setup.bash ; cd ..
|
---|
| 49 |
|
---|
| 50 | return 0
|
---|
| 51 |
|
---|
| 52 | |
---|
Note:
See
TracBrowser
for help on using the repository browser.