]> mj.ucw.cz Git - moe.git/blobdiff - bin/ev
Added a switch for allowing timing syscalls.
[moe.git] / bin / ev
diff --git a/bin/ev b/bin/ev
index 0ddd6d365a8678299e7aca5794ca21b4a6025522..ad44b496594e950b071c9010a2df321322ac0e62 100755 (executable)
--- a/bin/ev
+++ b/bin/ev
@@ -1,3 +1,4 @@
+#!/bin/bash
 # The Evaluator -- Master Control Script
 # (c) 2001 Martin Mares <mj@ucw.cz>
 
@@ -10,13 +11,14 @@ fi
 . config
 
 # Set up environment:
+#   HDIR       home dir of the evaluator
 #   PDIR       problem specific data
 #   SDIR       contestant's solution
 #   TDIR       test results
 #   BOXDIR     sandbox
 #   PROBLEM    problem we're evaluating
 
-[ -n "$2" ] || die "Usage: ev <contestant> <problem>"
+[ -n "$2" ] || die "Usage: ev <contestant> <problem> [<program>]"
 CONTESTANT=$1
 PROBLEM=$2
 dir-init
@@ -25,7 +27,7 @@ log-init
 box-init
 
 # Compile the program
-locate-source
+locate-source $3
 compile
 
 # Perform the tests