Last change
on this file since 20985 was 20985, checked in by davidb, 14 years ago |
Minor tweaks to improve readability of echo statements
|
File size:
1.0 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 |
|
---|
| 29 | export PATH=$PHAROSSRCHOME/bin/script:$PHAROSSRCHOME/bin/$PHAROSOS:$PATH
|
---|
| 30 |
|
---|
| 31 | export DERBYDB_HOME=$PHAROSHOME/derbyDB
|
---|
| 32 |
|
---|
| 33 | export PHAROS_PREFIX_URL=http://localhost:8080/pharos
|
---|
| 34 |
|
---|
[20985] | 35 | echo ""
|
---|
[20983] | 36 | echo "+Your environment is now set up for KMI Pharos Image Similarity Search"
|
---|
[20985] | 37 | echo " - PHAROS_PREFIX_URL=$PHAROS_PREFIX_URL"
|
---|
[20983] | 38 |
|
---|
[20985] | 39 | echo " - To start DerbyDB: pharos-start-derby.sh"
|
---|
| 40 | echo " - To stop DerbyDB: pharos-stop-derby.sh"
|
---|
[20983] | 41 |
|
---|
| 42 | cd cmdline-api-srcpack ; source setup.bash ; cd ..
|
---|
| 43 |
|
---|
| 44 | return 0
|
---|
| 45 |
|
---|
| 46 | |
---|
Note:
See
TracBrowser
for help on using the repository browser.