-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart
44 lines (35 loc) · 744 Bytes
/
start
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
40
41
42
43
44
#!/bin/sh
echo "Make by the TNT-Galaxy bin-maker"
HOST=$1
BASEDIR=$2
NUM=$3
LIBPATH='./lib/'
if [ x"$LIBPATH" != x ]; then
if [ x"$LD_LIBRARY_PATH" = x ]; then
LD_LIBRARY_PATH=$LIBPATH
else
LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH
fi
teamname="std-base"
player="./sample_player"
coach="./sample_coach"
config="./player.conf"
coach_config="./coach.conf"
opt="--player-config ${config}"
opt="${opt} -h ${HOST} -t ${teamname}"
coachopt="--coach-config ${coach_config} --use_team_graphic on"
coachopt="${coachopt} -h ${HOST} -t ${teamname}"
cd $BASEDIR
case $NUM in
1)
$player $opt -g
;;
12)
$coach $coachopt
;;
*)
$player $opt
;;
esac