]> mj.ucw.cz Git - moe.git/blobdiff - public/compile
Renamed desktop icons.
[moe.git] / public / compile
old mode 100644 (file)
new mode 100755 (executable)
index 0a180d3..f96528f
@@ -2,9 +2,9 @@
 # (c) 2001 Martin Mares <mj@ucw.cz>
 
 set -e
 # (c) 2001 Martin Mares <mj@ucw.cz>
 
 set -e
-[ -n "$MO_PUBLIC" -a -d "$MO_PUBLIC" ] || { echo >&2 "MO_PUBLIC not set, giving up." ; exit 1 ; }
-. $MO_PUBLIC/bin/lib
-. $MO_PUBLIC/config
+[ -n "$MO_ROOT" -a -d "$MO_ROOT" ] || { echo >&2 "MO_ROOT not set, giving up." ; exit 1 ; }
+. $MO_ROOT/bin/lib
+. $MO_ROOT/config
 
 [ -n "$1" ] || die "Usage: compile (<problem> | <file> [<options>])"
 if [ "${1%%.*}" == "$1" ] ; then
 
 [ -n "$1" ] || die "Usage: compile (<problem> | <file> [<options>])"
 if [ "${1%%.*}" == "$1" ] ; then
@@ -17,7 +17,7 @@ if [ "${1%%.*}" == "$1" ] ; then
                mv $TDIR/$PROBLEM .
        else
                echo >&2
                mv $TDIR/$PROBLEM .
        else
                echo >&2
-               sed <log >&2 '1,/^Compiler output:/d;/^Compiler output files:/,$d;/^Exited /d'
+               sed <check-log >&2 '1,/^Compiler output:/d;/^Compiler output files:/,$d;/^Exited /d'
        fi
 else
        SRC=$1
        fi
 else
        SRC=$1