Rev | Line | |
---|
[22669] | 1 |
|
---|
| 2 | extdesc="the PDFBox Extension"
|
---|
| 3 |
|
---|
| 4 | full_setup=`pwd`/${BASH_SOURCE}
|
---|
| 5 | fulldir=${full_setup%/*}
|
---|
| 6 | fulldir=${fulldir%/.}
|
---|
| 7 |
|
---|
| 8 | if [ "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"
|
---|
| 33 | else
|
---|
| 34 | echo "+Your environment is already setup for $extdesc"
|
---|
| 35 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.