Last change
on this file since 16800 was 16800, checked in by davidb, 16 years ago |
Creation of Greenstone extension for OCR support
|
File size:
805 bytes
|
Rev | Line | |
---|
[16800] | 1 |
|
---|
| 2 | extdesc="the Optical Character Recognition (OCR) Extension"
|
---|
| 3 |
|
---|
| 4 | if [ "x$GEXTOCR" = "x" ] ; then
|
---|
| 5 | export GEXTOCR=`pwd`
|
---|
| 6 | export GEXTOCR_INSTALLED=$GEXTOCR/installed
|
---|
| 7 |
|
---|
| 8 | export PATH=$GEXTOCR_INSTALLED/cmdline/bin:$PATH
|
---|
| 9 |
|
---|
| 10 | # Needed for running tesseract
|
---|
| 11 | export TESSDATA_PREFIX=$GEXTOCR_INSTALLED/cmdline/share/
|
---|
| 12 |
|
---|
| 13 |
|
---|
| 14 | if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
|
---|
| 15 | export LD_LIBRARY_PATH=$GEXTOCR_INSTALLED/cmdline/lib
|
---|
| 16 | else
|
---|
| 17 | export LD_LIBRARY_PATH=$GEXTOCR_INSTALLED/cmdline/lib:$LD_LIBRARY_PATH
|
---|
| 18 | fi
|
---|
| 19 |
|
---|
| 20 | if [ "x$GSDLEXTS" = "x" ] ; then
|
---|
| 21 | export GSDLEXTS=ocr
|
---|
| 22 | else
|
---|
| 23 | export GSDLEXTS=$GSDLEXTS:ocr
|
---|
| 24 | fi
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 | echo "+Your environment is now setup for $extdesc to Greenstone"
|
---|
| 28 | else
|
---|
| 29 | echo "+Your environment is already setup for $extdesc to Greenstone"
|
---|
| 30 | fi
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | if [ -e devel.bash ] ; then
|
---|
| 34 | source devel.bash
|
---|
| 35 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.