2017-05-26 13:52:55 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-12-03 15:43:22 +01:00
|
|
|
GAME="$1"
|
|
|
|
TURN="$2"
|
2015-01-11 01:23:47 +01:00
|
|
|
|
2017-12-03 15:43:22 +01:00
|
|
|
if [ ! -d "$ERESSEA/game-$GAME" ] ; then
|
2015-01-11 01:23:47 +01:00
|
|
|
echo "No such game: $GAME"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2017-12-03 15:43:22 +01:00
|
|
|
cd "$ERESSEA/game-$GAME" || exit
|
2015-01-11 01:23:47 +01:00
|
|
|
|
|
|
|
echo "running turn $TURN, game $GAME"
|
2017-12-06 20:00:32 +01:00
|
|
|
"$ERESSEA/server/bin/eressea" -t "$TURN" run-turn.lua
|
2015-01-11 01:23:47 +01:00
|
|
|
mkdir -p log
|
2017-12-03 15:43:22 +01:00
|
|
|
ln -f eressea.log "log/eressea.log.$TURN"
|
2017-05-26 13:52:55 +02:00
|
|
|
|