]> mj.ucw.cz Git - eval.git/blob - bin/task-init
A lot of work...
[eval.git] / bin / task-init
1 # The Evaluator -- Initialize Task Directory
2 # (c) 2001 Martin Mares <mj@ucw.cz>
3
4 pstart "Initializing... "
5 [ -d $PDIR ] || die "Problem not found"
6 [ -d $SDIR ] || die "Solution not found"
7 mkdir -p $TDIR
8 rm -rf $TDIR
9 cp -a $SDIR $TDIR
10 cat >$TDIR/log <<EOF
11 Contestant: $CT
12 Problem: $PROBLEM
13 Contestant's solution directory: $SDIR
14 Problem directory: $PDIR
15 Testing directory: $TDIR
16 EOF
17 >$TDIR/points
18 pend "OK"