root/gs2-extensions/tika/trunk/setup.bash @ 22690

Revision 22690, 0.8 KB (checked in by sjm84, 9 years ago)

Adding the initial content for the Tika extension

Line 
1
2extdesc="the Tika Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8if [ "x$GEXT_TIKA" = "x" ] ; then
9  export GEXT_TIKA=`pwd`
10
11  if [ -d "$GEXT_TIKA/bin/script" ] ; then
12    export PATH=$GEXT_TIKA/bin/script:$PATH
13  fi
14
15  if [ -d "$GEXT_TIKA/lib" ] ; then
16    if [ "$GSDLOS" = "linux" ] ; then
17      export LD_LIBRARY_PATH=$GEXT_TIKA/lib:$LD_LIBRARY_PATH
18    elif [ "$GSDLOS" = "darwin" ] ; then
19      export DYLD_LIBRARY_PATH=$GEXT_TIKA/lib:$DYLD_LIBRARY_PATH
20    fi
21  fi
22
23  extdir=${GEXT_TIKA##*/}
24
25  if [ "x$GSDLEXTS" = "x" ] ; then
26    export GSDLEXTS=$extdir
27  else
28    export GSDLEXTS=$GSDLEXTS:$extdir
29  fi
30
31
32  echo "+Your environment is now setup for $extdesc"
33else
34  echo "+Your environment is already setup for $extdesc"
35fi
Note: See TracBrowser for help on using the browser.