source: extensions/gsdl-ocr/trunk/setup.bash@ 18132

Last change on this file since 18132 was 16800, checked in by davidb, 16 years ago

Creation of Greenstone extension for OCR support

File size: 805 bytes
Line 
1
2extdesc="the Optical Character Recognition (OCR) Extension"
3
4if [ "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"
28else
29 echo "+Your environment is already setup for $extdesc to Greenstone"
30fi
31
32
33if [ -e devel.bash ] ; then
34 source devel.bash
35fi
Note: See TracBrowser for help on using the repository browser.