warning "Cannot find package file $p"
fi
LOGDIR="$altlogdir"
if test -z "$LOGDIR" -o ! -d "$LOGDIR" -o ! -w "$LOGDIR"
then
for LOGDIR in "`dirname $PARFILE`/logs/$p"
$BUILDHOME/logs/$p /usr/tmp /var/tmp /tmp
do
test -d "$LOGDIR" || mkdir -p "LOGDIR" 2> /dev/null
test -d "$LOGDIR" -a -w "$LOGDIR" && break
done
fi
msg="Check build logs for $p in `hostname`:$LOGDIR"
echo "$msg"
echo "$msg" | $MAIL -s "$msg" $USER 2> /dev/null
for u in $userhosts
do
build_one $u
done
done
#将退出状态限制为一般unix实际做法
test $EXITCODE -gt 125 && EXITCODE=125
exit $EXITCODE
个人原创,转载请注明:三江小渡










