From: Martin Mares Date: Sun, 3 Jun 2001 18:30:14 +0000 (+0000) Subject: Manual override of solution to test. X-Git-Tag: python-dummy-working~506 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=fe345a6fc9d8b74caf685fdffb41500cfc795b81;p=eval.git Manual override of solution to test. --- diff --git a/bin/ev b/bin/ev index 018f237..4846c9f 100755 --- a/bin/ev +++ b/bin/ev @@ -17,7 +17,7 @@ fi # BOXDIR sandbox # PROBLEM problem we're evaluating -[ -n "$2" ] || die "Usage: ev " +[ -n "$2" ] || die "Usage: ev []" CONTESTANT=$1 PROBLEM=$2 dir-init @@ -26,7 +26,7 @@ log-init box-init # Compile the program -locate-source +locate-source $3 compile # Perform the tests diff --git a/bin/lib b/bin/lib index 27ea9b4..aa7b4cf 100644 --- a/bin/lib +++ b/bin/lib @@ -94,10 +94,11 @@ EOF function locate-source { pstart "Finding source... " + SBASE=${1:-$PROBLEM} for a in $EXTENSIONS ; do - if [ -f $SDIR/$PROBLEM.$a ] ; then + if [ -f $SDIR/$SBASE.$a ] ; then [ -z "$SRCN" ] || die "Multiple source files found: $SDIR/$PROBLEM.$a and $SDIR/$SRCN. Please fix." - SRCN=$PROBLEM.$a + SRCN=$SBASE.$a SRCEXT=$a fi done