server/process/cron/preview.cron

18 lines
415 B
Text
Raw Normal View History

2015-02-01 08:29:21 +01:00
#!/bin/bash
2018-06-11 21:00:01 +02:00
(
[ "$PREVIEW" != "yes" ] && exit
[ -z "${ERESSEA}" ] && ERESSEA="$HOME/eressea"
branch="develop"
if [ -e "${ERESSEA}/build/.preview" ]; then
branch=$(cat "${ERESSEA}/build/.preview")
fi
SRC="${ERESSEA}/git"
"${SRC}/s/preview" build "$branch" || exit $?
for game in "$@" ; do
"${SRC}/s/preview" -g "$game" run && \
"${SRC}/s/preview" -g "$game" send
2014-08-16 11:43:46 +02:00
done
) | tee -a "$HOME/log/preview.cron.log"
2018-06-11 21:00:01 +02:00