server/process/cron/preview.cron
Enno Rehling 7b41a53d2a Merge branch 'master' into setup-cronjob
Conflicts:
	src/buildno.h
2015-02-08 13:56:49 +01:00

14 lines
342 B
Bash
Executable file

#!/bin/bash
[ -z ${ERESSEA} ] && ERESSEA=~/eressea
branch="develop"
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