source: gs2-extensions/pdf-box/trunk/setup.bash@ 22672

Last change on this file since 22672 was 22672, checked in by sjm84, 11 years ago

Oops, forgot to add a trunk folder

File size: 797 bytes
Line 
1
2extdesc="the PDFBox Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8if [ "x$GEXT_PDFBOX" = "x" ] ; then
9 export GEXT_PDFBOX=`pwd`
10
11 if [ -d "$GEXT_PDFBOX/bin/script" ] ; then
12 export PATH=$GEXT_PDFBOX/bin/script:$PATH
13 fi
14
15 if [ -d "$GEXT_PDFBOX/lib" ] ; then
16 if [ "$GSDLOS" = "linux" ] ; then
17 export LD_LIBRARY_PATH=$GEXT_PDFBOX/lib:$LD_LIBRARY_PATH
18 elif [ "$GSDLOS" = "darwin" ] ; then
19 export DYLD_LIBRARY_PATH=$GEXT_PDFBOX/lib:$DYLD_LIBRARY_PATH
20 fi
21 fi
22
23 extdir=${GEXT_PDFBOX##*/}
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 repository browser.