1 # The Evaluator -- Public Compilation Script
2 # (c) 2001 Martin Mares <mj@ucw.cz>
5 [ -n "$MO_ROOT" -a -d "$MO_ROOT" ] || { echo >&2 "MO_ROOT not set, giving up." ; exit 1 ; }
9 [ -n "$1" ] || die "Usage: compile (<problem> | <file> [<options>])"
10 if [ "${1%%.*}" == "$1" ] ; then
20 sed <check-log >&2 '1,/^Compiler output:/d;/^Compiler output files:/,$d;/^Exited /d'
24 [ -f $SRC ] || die "$SRC doesn't exist"
30 [ -n "${!CCMD}" ] || die "Don't know how to compile $SRC"
31 CCMD="`eval echo ${!CCMD}`"