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 ; }
6 pushd $MO_ROOT >/dev/null
12 [ -n "$1" ] || die "Usage: compile (<problem> | <file> [<options>])"
13 if [ "${1%%.*}" == "$1" ] ; then
23 sed <check-log >&2 '1,/^Compiler output:/d;/^Compiler output files:/,$d;/^Exited /d'
27 [ -f $SRC ] || die "$SRC doesn't exist"
32 CCMD=EXT_${SRCEXT}_COMP
33 [ -n "${!CCMD}" ] || die "Don't know how to compile $SRC"
34 CCMD="`eval echo ${!CCMD}`"