improved makemoredists script and tessdata/Makefile.am

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@546 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
zdenop@gmail.com 2010-12-05 13:33:45 +00:00
parent 8cf7660e3a
commit d8a2303daf
3 changed files with 121 additions and 86 deletions

View File

@ -1,19 +1,35 @@
#!/bin/bash
# Requirement: tesseract directory name must be "tesseract-ocr" otherwise
# script will not work
# Windows relevant files
winlist="tessdll.dll tessdll.lib tesseract.exe dlltest.exe cntraining.exe mftraining.exe unicharset_extractor.exe wordlist2dawg.exe java/ScrollView.jar tessdata/configs/* tessdata/tessconfigs/*"
windeps="glut32.dll jpeg62.dll libimage.dll libpng13.dll librle3.dll libtiff3.dll zlib1.dll leptonlib.dll lib/leptonlib.lib include/*.h dlltest/* tesseract.vcproj tesseract.sln StdAfx.cpp StdAfx.h tessdll.cpp tessdll.h tessdll.vcproj"
# get version information
version=`grep PACKAGE_VERSION= configure | sed -e "s/PACKAGE_VERSION=//" | sed -e "s/'//g"`
ver=tesseract-ocr-$version
excld="exclude.txt"
cd ..
echo Output for $ver is in `pwd`...
#ver=`ls -1rt *[0-9].tar.gz |tail -1`
#ver=${ver%.tar.gz}
ver="tesseract-3.00"
# create language files packages
if [ -f $excld ]
then
echo Removing $excld...
rm -f $excld
fi
for l in tessdata/*.traineddata
for l in tesseract-ocr/tessdata/*.traineddata
do
echo Creating language package for `basename "$l" .traineddata`...
chmod 644 ${l%%.*}.*
tar --group root --owner root -chozf $ver.`basename "$l" .traineddata`.tar.gz ${l%%.*}.*
echo ${l%%.*}.* | tr " " "\n" >>$excld
done
tar chozf $ver.exe.tar.gz $winlist
tar chozf $ver.windep.tar.gz $windeps
# create linux source package
tar -chozf tesseract-ocr-3.01.tar.gz --exclude=.svn --exclude=vs2008 -X $excld tesseract-ocr/*
rm -f $excld
# Windows build relevant files
name=$ver-vs2008
# Let's be nice and use common windows packager ;-)
zip $name.zip tesseract-ocr/vs2008/* tesseract-ocr/vs2008/include/* tesseract-ocr/vs2008/include/leptonica/* tesseract-ocr/vs2008/lib/* tesseract-ocr/vs2008/port/*

View File

@ -1,5 +1,13 @@
datadir = @datadir@/tessdata
data_DATA = eng.cube.bigrams \
data_DATA = ara.cube.bigrams \
ara.cube.fold \
ara.cube.lm \
ara.cube.nn \
ara.cube.params \
ara.cube.size \
ara.cube.word-freq \
ara.traineddata \
eng.cube.bigrams \
eng.cube.lm \
eng.cube.params \
eng.cube.word-freq \
@ -7,43 +15,45 @@ data_DATA = eng.cube.bigrams \
eng.cube.fold \
eng.cube.nn \
eng.cube.size \
eng.tesseract_cube.nn
#data_DATA = bul.traineddata \
# cat.traineddata \
# ces.traineddata \
# chi_sim.traineddata \
# chi_tra.traineddata \
# dan.traineddata \
# dan-frak.traineddata \
# deu.traineddata \
# ell.traineddata \
# eng.traineddata \
# fin.traineddata \
# fra.traineddata \
# hun.traineddata \
# ind.traineddata \
# ita.traineddata \
# jpn.traineddata \
# kor.traineddata \
# lav.traineddata \
# lit.traineddata \
# nld.traineddata \
# nor.traineddata \
# pol.traineddata \
# por.traineddata \
# ron.traineddata \
# rus.traineddata \
# slk.traineddata \
# slv.traineddata \
# spa.traineddata \
# srp.traineddata \
# swe.traineddata \
# tgl.traineddata \
# tha.traineddata \
# tur.traineddata \
# ukr.traineddata \
# vie.traineddata
eng.tesseract_cube.nn \
bul.traineddata \
cat.traineddata \
ces.traineddata \
chi_sim.traineddata \
chi_tra.traineddata \
dan.traineddata \
dan-frak.traineddata \
deu.traineddata \
ell.traineddata \
fin.traineddata \
fra.traineddata \
heb.traineddata \
hrv.traineddata \
hun.traineddata \
ind.traineddata \
ita.traineddata \
jpn.traineddata \
kor.traineddata \
lav.traineddata \
lit.traineddata \
nld.traineddata \
nor.traineddata \
osd.traineddata \
pol.traineddata \
por.traineddata \
ron.traineddata \
rus.traineddata \
slk.traineddata \
slk-frak.traineddata \
slv.traineddata \
spa.traineddata \
srp.traineddata \
swe.traineddata \
tgl.traineddata \
tha.traineddata \
tur.traineddata \
ukr.traineddata \
vie.traineddata
SUBDIRS = configs tessconfigs

View File

@ -222,7 +222,6 @@ libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
lt_ECHO = @lt_ECHO@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
@ -238,7 +237,15 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
data_DATA = eng.cube.bigrams \
data_DATA = ara.cube.bigrams \
ara.cube.fold \
ara.cube.lm \
ara.cube.nn \
ara.cube.params \
ara.cube.size \
ara.cube.word-freq \
ara.traineddata \
eng.cube.bigrams \
eng.cube.lm \
eng.cube.params \
eng.cube.word-freq \
@ -246,44 +253,46 @@ data_DATA = eng.cube.bigrams \
eng.cube.fold \
eng.cube.nn \
eng.cube.size \
eng.tesseract_cube.nn
eng.tesseract_cube.nn \
bul.traineddata \
cat.traineddata \
ces.traineddata \
chi_sim.traineddata \
chi_tra.traineddata \
dan.traineddata \
dan-frak.traineddata \
deu.traineddata \
ell.traineddata \
fin.traineddata \
fra.traineddata \
heb.traineddata \
hrv.traineddata \
hun.traineddata \
ind.traineddata \
ita.traineddata \
jpn.traineddata \
kor.traineddata \
lav.traineddata \
lit.traineddata \
nld.traineddata \
nor.traineddata \
osd.traineddata \
pol.traineddata \
por.traineddata \
ron.traineddata \
rus.traineddata \
slk.traineddata \
slk-frak.traineddata \
slv.traineddata \
spa.traineddata \
srp.traineddata \
swe.traineddata \
tgl.traineddata \
tha.traineddata \
tur.traineddata \
ukr.traineddata \
vie.traineddata
#data_DATA = bul.traineddata \
# cat.traineddata \
# ces.traineddata \
# chi_sim.traineddata \
# chi_tra.traineddata \
# dan.traineddata \
# dan-frak.traineddata \
# deu.traineddata \
# ell.traineddata \
# eng.traineddata \
# fin.traineddata \
# fra.traineddata \
# hun.traineddata \
# ind.traineddata \
# ita.traineddata \
# jpn.traineddata \
# kor.traineddata \
# lav.traineddata \
# lit.traineddata \
# nld.traineddata \
# nor.traineddata \
# pol.traineddata \
# por.traineddata \
# ron.traineddata \
# rus.traineddata \
# slk.traineddata \
# slv.traineddata \
# spa.traineddata \
# srp.traineddata \
# swe.traineddata \
# tgl.traineddata \
# tha.traineddata \
# tur.traineddata \
# ukr.traineddata \
# vie.traineddata
SUBDIRS = configs tessconfigs
all: all-recursive