Last change
on this file since 20983 was 20983, checked in by davidb, 14 years ago |
Initial files for Phrasos extension to Greenstone3
|
File size:
951 bytes
|
Line | |
---|
1 |
|
---|
2 |
|
---|
3 | if [ ! -z $PHAROSHOME ] ; then
|
---|
4 | echo "*Your environment is already set up for KMI Pharos Image Similarity Search"
|
---|
5 | return 0
|
---|
6 | fi
|
---|
7 |
|
---|
8 |
|
---|
9 | if [ ! -f "setup.bash" ] ; then
|
---|
10 | echo "You must source the script from within the KMI Pharos hom directory"
|
---|
11 | return 1
|
---|
12 | fi
|
---|
13 |
|
---|
14 | # Need to run this script from its own directory instead of whichever directory it may be called from
|
---|
15 | thisdir=`pwd`
|
---|
16 |
|
---|
17 |
|
---|
18 | if [ -z $GSDL3SRCHOME ] ; then
|
---|
19 | cd ../..
|
---|
20 | source gs3-setup.sh
|
---|
21 | cd "$thisdir"
|
---|
22 | fi
|
---|
23 |
|
---|
24 | export PHAROSSRCHOME=`pwd`
|
---|
25 | export PHAROSHOME=$PHAROSSRCHOME/web
|
---|
26 | export PHAROSOS=$GSDLOS
|
---|
27 |
|
---|
28 | export PATH=$PHAROSSRCHOME/bin/script:$PHAROSSRCHOME/bin/$PHAROSOS:$PATH
|
---|
29 |
|
---|
30 | export DERBYDB_HOME=$PHAROSHOME/derbyDB
|
---|
31 |
|
---|
32 | export PHAROS_PREFIX_URL=http://localhost:8080/pharos
|
---|
33 |
|
---|
34 | echo "+Your environment is now set up for KMI Pharos Image Similarity Search"
|
---|
35 | echo "++PHAROS_PREFIX_URL=$PHAROS_PREFIX_URL"
|
---|
36 |
|
---|
37 | echo "++To start DerbyDB: start-derby.sh"
|
---|
38 |
|
---|
39 | cd cmdline-api-srcpack ; source setup.bash ; cd ..
|
---|
40 |
|
---|
41 | return 0
|
---|
42 |
|
---|
43 | |
---|
Note:
See
TracBrowser
for help on using the repository browser.