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