1 # The Evaluator -- Public Status Script
2 # (c) 2004 Martin Mares <mj@ucw.cz>
5 [ -n "$MO_PUBLIC" -a -d "$MO_PUBLIC" ] || { echo >&2 "MO_PUBLIC not set, giving up." ; exit 1 ; }
9 [ -z "$1" ] || die "Usage: status"
11 echo -e "Submitted tasks:\n"
13 for PROBLEM in `cd $MO_PUBLIC/problems/ ; echo *` ; do
15 PDIR=$MO_PUBLIC/problems/$PROBLEM
16 SUBDIR=~/.submit/$PROBLEM
17 [ -f $PDIR/config ] || exit 0
20 if [ -d $SUBDIR ] ; then
21 if [ $TASK_TYPE == open-data ] ; then
23 [ -f $SUBDIR/$X.out ] && echo -n "$X " || echo -n "- "
28 for X in $EXTENSIONS ; do
29 if [ -f $SUBDIR/$PROBLEM.$X ] ; then
30 echo -n `basename $SUBDIR/$PROBLEM.$X`
36 elif [ $C == 1 ] ; then
39 echo "INCONSISTENT (you probably modified $SUBDIR manually)"