From fe345a6fc9d8b74caf685fdffb41500cfc795b81 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 3 Jun 2001 18:30:14 +0000 Subject: [PATCH] Manual override of solution to test. --- bin/ev | 4 ++-- bin/lib | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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 -- 2.39.2