I cannot get this to work, hacking it

This commit is contained in:
Enno Rehling 2015-02-01 08:37:04 +01:00
parent a567fe9ed0
commit b06efdfa75
1 changed files with 1 additions and 7 deletions

View File

@ -1,18 +1,12 @@
#!/bin/bash
function abort() {
echo $1
[ -z $2 ] && exit -1
exit $2 # otherwise
}
[ -z ${ERESSEA} ] && ERESSEA=~/eressea
branch="master"
if [ -e ${ERESSEA}/build/.preview ]; then
branch=`cat ${ERESSEA}/build/.preview`
fi
SRC=${ERESSEA}/git
${SRC}/s/preview build ${branch} || abort "failed to build ${branch}"
${SRC}/s/preview build ${branch} || exit $?
${SRC}/s/preview version
for game in 2 3 4 ; do
${SRC}/s/preview -g ${game} run && \