Update for move of top-level to api directory

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@328 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
theraysmith 2010-05-19 18:10:49 +00:00
parent f01a33ae96
commit 7a2a378699
3 changed files with 8 additions and 9 deletions

View File

@ -20,7 +20,7 @@ then
echo "Usage:$0 pagesfile"
exit 1
fi
if [ ! -d ccmain ]
if [ ! -d api ]
then
echo "Run $0 from the tesseract-ocr root directory!"
exit 1

View File

@ -20,12 +20,12 @@ then
echo "Usage:$0 unlv-data-dir version-id"
exit 1
fi
if [ ! -d ccmain ]
if [ ! -d api ]
then
echo "Run $0 from the tesseract-ocr root directory!"
exit 1
fi
if [ ! -r ccmain/tesseract -a ! -r tesseract.exe ]
if [ ! -r api/tesseract -a ! -r tesseract.exe ]
then
echo "Please build tesseract before running $0"
exit 1

View File

@ -15,17 +15,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if [ $# -ne 1 ]
if [ $# -ne 1 -a $# -ne 2 ]
then
echo "Usage:$0 pagesfile"
echo "Usage:$0 pagesfile [-zoning]"
exit 1
fi
if [ ! -d ccmain ]
if [ ! -d api ]
then
echo "Run $0 from the tesseract-ocr root directory!"
exit 1
fi
if [ ! -r ccmain/tesseract ]
if [ ! -r api/tesseract ]
then
if [ ! -r tesseract.exe ]
then
@ -35,12 +35,11 @@ then
tess="./tesseract.exe"
fi
else
tess="time -f %U -o times.txt ccmain/tesseract"
tess="time -f %U -o times.txt api/tesseract"
export TESSDATA_PREFIX=$PWD/
fi
pages=$1
imdir=${pages%/pages}
setname=${imdir##*/}
if [ $# -eq 2 -a "$2" = "-zoning" ]