-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildall.sh
More file actions
executable file
·39 lines (31 loc) · 1.08 KB
/
buildall.sh
File metadata and controls
executable file
·39 lines (31 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Build all tesseracts in the project
# Assumes tesseract CLI is installed
set -e # Exit on error
echo "========================================="
echo "Building Tesseracts"
echo "========================================="
echo ""
# Check if tesseract CLI is available
if ! command -v tesseract &> /dev/null; then
echo "Error: tesseract CLI not found. Please install tesseract-core first."
echo "Visit: https://github.com/pasteurlabs/tesseract-core"
exit 1
fi
# Check if tesseract CLI is the correct one
# To avoid potential conflicts with other tools named Tesseract
if ! tesseract --help | grep -q "autodiff"; then
echo "Error: wrong tesseract CLI. Please install tesseract-core first."
echo "Visit: https://github.com/pasteurlabs/tesseract-core"
exit 1
fi
for tess_dir in tesseracts/*/
do
echo "Building ${tess_dir}"
tesseract build ${tess_dir}
echo "✓ ${tess_dir} built successfully"
echo ""
done
echo "========================================="
echo "✓ All tesseracts built successfully!"
echo "========================================="