2 # An incremental evaluator: detect which solutions were changed since
3 # last run and run `ev' on them.
5 [ -n "$1" ] || { echo "Usage: mo-ev-inc [--force] <tasks>" ; exit 1 ; }
8 if [ "$1" == --force ] ; then
12 for user in `bin/mo-get-users` ; do
14 echo -n "$user/$task: "
15 if [ -d solutions/$user/$task ] ; then
16 N=`cd solutions/$user/$task && cat * | md5sum | head -c16`
20 if [ -f testing/$user/$task/sum ] ; then
21 O=`cat testing/$user/$task/sum`
25 if [ $force == 1 -a $N != none ] ; then
29 if [ $O == $N ] ; then
31 elif [ $N == none ] ; then
32 rm -rf testing/$user/$task
37 echo $N >testing/$user/$task/sum