Rev | Line | |
---|
[23905] | 1 |
|
---|
| 2 | extdesc="TDB flavoured editing"
|
---|
| 3 |
|
---|
| 4 | full_setup=`pwd`/${BASH_SOURCE}
|
---|
| 5 | fulldir=${full_setup%/*}
|
---|
| 6 | fulldir=${fulldir%/.}
|
---|
| 7 |
|
---|
| 8 | if [ "x$GSDLHOME" = "x" ] ; then
|
---|
| 9 | if [ -e ../../setup.bash ] ; then
|
---|
| 10 | export gsopt_noexts=1 && pushd ../.. && source setup.bash && popd
|
---|
| 11 | export gsopt_noexts=
|
---|
| 12 | elif [ -e ../../gs3-setup.sh ] ; then
|
---|
| 13 | export gsopt_noexts=1 && pushd ../.. && source gs3-setup.sh && popd
|
---|
| 14 | export gsopt_noexts=
|
---|
| 15 | fi
|
---|
| 16 |
|
---|
| 17 | fi
|
---|
| 18 |
|
---|
| 19 | if [ "x$GEXTTDBEDIT" = "x" ] ; then
|
---|
| 20 |
|
---|
| 21 | export TDBEDITOS=`uname -s | tr '[A-Z]' '[a-z]' | sed 's/\([0-9]\+\)\?_.*$//'`
|
---|
| 22 | export GEXTTDBEDIT=$fulldir
|
---|
| 23 | export GEXTTDBEDIT_INSTALLED=$GEXTTDBEDIT/$GSDLOS
|
---|
| 24 |
|
---|
| 25 | export PATH=$GEXTTDBEDIT_INSTALLED/bin:$PATH
|
---|
| 26 |
|
---|
| 27 | if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
|
---|
| 28 | export LD_LIBRARY_PATH=$GEXTTDBEDIT_INSTALLED/lib
|
---|
| 29 | else
|
---|
| 30 | export LD_LIBRARY_PATH=$GEXTTDBEDIT_INSTALLED/lib:$LD_LIBRARY_PATH
|
---|
| 31 | fi
|
---|
| 32 |
|
---|
| 33 | extdir=${GEXTTDBEDIT##*/}
|
---|
| 34 |
|
---|
| 35 | if [ "x$GSDLEXTS" = "x" ] ; then
|
---|
| 36 | export GSDLEXTS=$extdir
|
---|
| 37 | else
|
---|
| 38 | export GSDLEXTS=$GSDLEXTS:$extdir
|
---|
| 39 | fi
|
---|
| 40 |
|
---|
| 41 | echo "+Your environment is now setup for $extdesc to Greenstone"
|
---|
| 42 | else
|
---|
| 43 | echo "+Your environment is already setup for $extdesc to Greenstone"
|
---|
| 44 | fi
|
---|
| 45 |
|
---|
| 46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.