Skip to content

Commit

Permalink
update script for 3.02.02 release
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@793 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
zdenop@gmail.com committed Oct 26, 2012
1 parent be09fec commit e835030
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions makemoredists
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
# Requirement: tesseract directory name should be "tesseract-3.02"
# Requirement: tesseract directory name should be "tesseract-ocr"

source_dir=${PWD##*/}
ver=$source_dir
tess_ver=3.02
src_min_ver=.02
ver=$source_dir-$tess_ver
excld="exclude.txt"

cd ..
Expand Down Expand Up @@ -31,15 +33,15 @@ name=$ver-win_vs2008
zip -9 -r --exclude=*.svn* --exclude=*strtok_r* $name.zip $source_dir/vs2008/

# create linux source package
echo Creating linux source package $ver.tar.gz ...
tar -chf $ver.tar --exclude=.svn --exclude=debian --exclude=autom4te.cache --exclude=doc/html --exclude=po/ --exclude=makemoredists --exclude=vs2008 -X $excld $source_dir/*
echo Creating linux source package $ver$src_min_ver.tar.gz ...
tar -chf $ver$src_min_ver.tar --exclude=.svn --exclude=debian --exclude=autom4te.cache --exclude=doc/html --exclude=po/ --exclude=m4/ --exclude=makemoredists --exclude=vs2008 -exclude=INSTALL.SVN -X $excld $source_dir/*
#workaround to include strtok_r from vs2008 for mingw
tar -rf $ver.tar $source_dir/vs2008/port/strtok_r.*
gzip $ver.tar
tar -rf $ver$src_min_ver.tar $source_dir/vs2008/port/strtok_r.*
gzip $ver$src_min_ver.tar

# create doc and package doc
cd $source_dir
# doxygen doc/Doxyfile
doxygen doc/Doxyfile
cd ..
tar -chzf $ver-doc-html.tar.gz $source_dir/doc/html/*

Expand Down
4 changes: 2 additions & 2 deletions tessdata/configs/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
datadir = @datadir@/tessdata/configs
data_DATA = inter makebox box.train unlv ambigs.train api_config kannada box.train.stderr quiet logfile digits hocr linebox rebox strokewidth
EXTRA_DIST = inter makebox box.train unlv ambigs.train api_config kannada box.train.stderr quiet logfile digits hocr linebox rebox strokewidth
data_DATA = inter makebox box.train unlv ambigs.train api_config kannada box.train.stderr quiet logfile digits hocr linebox rebox strokewidth bigram
EXTRA_DIST = inter makebox box.train unlv ambigs.train api_config kannada box.train.stderr quiet logfile digits hocr linebox rebox strokewidth bigram

0 comments on commit e835030

Please sign in to comment.