forked from github/server
preview build script checks for a branch to build from (in build/.preview)
fix int to bool conversions
This commit is contained in:
parent
d3524b9eab
commit
29fc0fe6c3
|
@ -1,9 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ -z $ERESSEA ] && ERESSEA=$HOME/eressea
|
[ -z ${ERESSEA} ] && ERESSEA=~/eressea
|
||||||
SRC=$ERESSEA/git
|
branch="master"
|
||||||
$SRC/s/preview build master
|
if [ -e ${ERESSEA}/build/.preview ]; then
|
||||||
$SRC/s/preview version
|
branch=`cat ${ERESSEA}/build/.preview`
|
||||||
|
fi
|
||||||
|
SRC=${ERESSEA}/git
|
||||||
|
${SRC}/s/preview build ${branch}
|
||||||
|
${SRC}/s/preview version
|
||||||
for game in 2 3 4 ; do
|
for game in 2 3 4 ; do
|
||||||
$SRC/s/preview -g $game run && \
|
${SRC}/s/preview -g ${game} run && \
|
||||||
$SRC/s/preview -g $game send
|
${SRC}/s/preview -g ${game} send
|
||||||
done
|
done
|
||||||
|
|
|
@ -472,7 +472,6 @@ bool is_exclusive(const order * ord)
|
||||||
bool is_long(const order * ord)
|
bool is_long(const order * ord)
|
||||||
{
|
{
|
||||||
keyword_t kwd = ORD_KEYWORD(ord);
|
keyword_t kwd = ORD_KEYWORD(ord);
|
||||||
bool result = false;
|
|
||||||
|
|
||||||
switch (kwd) {
|
switch (kwd) {
|
||||||
case K_CAST:
|
case K_CAST:
|
||||||
|
@ -499,9 +498,9 @@ bool is_long(const order * ord)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
result = false;
|
break;
|
||||||
}
|
}
|
||||||
return result;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -529,7 +528,6 @@ bool is_persistent(const order * ord)
|
||||||
default:
|
default:
|
||||||
return persist || is_repeated(ord);
|
return persist || is_repeated(ord);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char *write_order(const order * ord, char *buffer, size_t size)
|
char *write_order(const order * ord, char *buffer, size_t size)
|
||||||
|
|
Loading…
Reference in New Issue