source: gs2-extensions/ocr/trunk/setup.bash@ 32259

Last change on this file since 32259 was 30080, checked in by davidb, 9 years ago

Ocropus nolonger used

File size: 873 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"
28 echo "++Remember to download Tesseract training data from github"
29else
30 echo "+Your environment is already setup for $extdesc to Greenstone"
31fi
32
33
34if [ -e devel.bash ] ; then
35 source devel.bash
36fi
Note: See TracBrowser for help on using the repository browser.