Skip to content

Commit d367010

Browse files
committed
misc | changed launcher names
1 parent a7e7007 commit d367010

File tree

3 files changed

+80
-1
lines changed

3 files changed

+80
-1
lines changed

sauerract.bat

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@ECHO OFF
2+
3+
set TESS_BIN=bin
4+
5+
IF EXIST bin64\tesseract.exe (
6+
IF /I "%PROCESSOR_ARCHITECTURE%" == "amd64" (
7+
set TESS_BIN=bin64
8+
)
9+
IF /I "%PROCESSOR_ARCHITEW6432%" == "amd64" (
10+
set TESS_BIN=bin64
11+
)
12+
)
13+
14+
start %TESS_BIN%\tesseract.exe "-u$HOME\My Games\Sauerract" -glog.txt %*

sauerract_unix

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#!/bin/sh
2+
# TESS_DATA should refer to the directory in which Tesseract data files are placed.
3+
#TESS_DATA=~/sauerract
4+
#TESS_DATA=/usr/local/sauerract
5+
TESS_DATA=.
6+
7+
# TESS_BIN should refer to the directory in which Tesseract executable files are placed.
8+
TESS_BIN=${TESS_DATA}/bin_unix
9+
10+
# TESS_OPTIONS contains any command line options you would like to start Tesseract with.
11+
#TESS_OPTIONS=""
12+
TESS_OPTIONS="-u${HOME}/.sauerract"
13+
14+
# SYSTEM_NAME should be set to the name of your operating system.
15+
#SYSTEM_NAME=Linux
16+
SYSTEM_NAME=`uname -s`
17+
18+
# MACHINE_NAME should be set to the name of your processor.
19+
#MACHINE_NAME=i686
20+
MACHINE_NAME=`uname -m`
21+
22+
case ${SYSTEM_NAME} in
23+
Linux)
24+
SYSTEM_NAME=linux_
25+
;;
26+
*)
27+
SYSTEM_NAME=unknown_
28+
;;
29+
esac
30+
31+
case ${MACHINE_NAME} in
32+
i486|i586|i686)
33+
MACHINE_NAME=
34+
;;
35+
x86_64|amd64)
36+
MACHINE_NAME=64_
37+
;;
38+
*)
39+
if [ ${SYSTEM_NAME} != native_ ]
40+
then
41+
SYSTEM_NAME=native_
42+
fi
43+
MACHINE_NAME=
44+
;;
45+
esac
46+
47+
if [ -x ${TESS_BIN}/native_client ]
48+
then
49+
SYSTEM_NAME=native_
50+
MACHINE_NAME=
51+
fi
52+
53+
if [ -x ${TESS_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ]
54+
then
55+
cd ${TESS_DATA}
56+
exec ${TESS_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ${TESS_OPTIONS} "$@"
57+
else
58+
echo "Your platform does not have a pre-compiled Tesseract client."
59+
echo "Please follow the following steps to build a native client:"
60+
echo "1) Ensure you have the SDL2, SDL2-image, SDL2-mixer, and OpenGL libraries installed."
61+
echo "2) Type \"make -C src install\"."
62+
echo "3) If the build succeeds, run this script again."
63+
exit 1
64+
fi
65+

server.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ IF /I "%PROCESSOR_ARCHITEW6432%" == "amd64" (
99
set TESS_BIN=bin64
1010
)
1111

12-
start %TESS_BIN%\tesseract.exe "-u$HOME\My Games\Tesseract" -gserver-log.txt -d %*
12+
start %TESS_BIN%\tesseract.exe "-u$HOME\My Games\Sauerract" -gserver-log.txt -d %*

0 commit comments

Comments
 (0)