server/process/cron/preview.cron

15 lines
341 B
Bash
Executable File

#!/bin/bash
[ -z ${ERESSEA} ] && ERESSEA=~/eressea
branch="master"
if [ -e ${ERESSEA}/build/.preview ]; then
branch=`cat ${ERESSEA}/build/.preview`
fi
BIN=${ERESSEA}/server/s
${BIN}/preview build ${branch} || exit $?
${BIN}/preview version
for game in 2 3 4 ; do
${BIN}/preview -g ${game} run && \
${BIN}/preview -g ${game} send
done