source: gs2-extensions/tdb/trunk/setup.bash@ 30185

Last change on this file since 30185 was 30185, checked in by jmt12, 9 years ago

Removing extra src-level directory

File size: 1.1 KB
Line 
1
2extdesc="TDB flavoured editing"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8if [ "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
17fi
18
19if [ "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:$fulldir/bin/script:$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"
42else
43 echo "+Your environment is already setup for $extdesc to Greenstone"
44fi
45
46
Note: See TracBrowser for help on using the repository browser.