forked from tesseract-ocr/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call autogen.sh before building installers Signed-off-by: Stefan Weil <sw@weilnetz.de>
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
TAG=5.0.0-rc1.$(date +%Y%m%d) | ||
|
||
git tag -a v$TAG -m "Tesseract $TAG" | ||
|
||
ARCHS="i686 x86_64" | ||
|
||
./autogen.sh | ||
|
||
for ARCH in $ARCHS; do | ||
HOST=$ARCH-w64-mingw32 | ||
BUILDDIR=bin/ndebug/$HOST-$TAG | ||
|
||
rm -rf $BUILDDIR | ||
mkdir -p $BUILDDIR | ||
( | ||
cd $BUILDDIR | ||
# Disable OpenMP (see https://github.com/tesseract-ocr/tesseract/issues/1662). | ||
../../../configure --disable-openmp --host=$HOST --prefix=/usr/$HOST CXX=$HOST-g++-posix CXXFLAGS="-fno-math-errno -Wall -Wextra -Wpedantic -g -O2" | ||
make install-jars install training-install html winsetup prefix=$PWD/usr/$HOST | ||
) | ||
done |