if (( rebuild ))
then
set -e
- ksh ./rebuild.ksh $nopull | read build_path
+ $SHELL ./rebuild.ksh $nopull | read build_path
set +e
else
build_path=${BUILD_PATH:-"../../.build"} # we prefer .build at the root level, but allow user option
if (( force_make )) || [[ ! -f ./sender${si} || ! -f ./receiver${si} ]]
then
- if ! make -B sender${si} receiver${si} >/dev/null 2>&1
+ if ! make -B sender${si} receiver${si} >/tmp/PID$$.clog 2>&1
then
echo "[FAIL] cannot find sender${si} and/or receiver${si}binary, and cannot make them.... humm?"
+ head -50 /tmp/PID$$.clog
+ rm -fr /tmp/PID$$.*
exit 1
fi
fi