2 # Grab all submits from contestants' home directories located on the
3 # local machine and copy them to solutions/.
5 [ -n "$1" ] || { echo "Usage: mo-grab <tasks>" ; exit 1 ; }
6 [ -f cf/mop ] || { echo "Missing config file, check cwd." ; exit 1 ; }
10 for user in `bin/mo-get-users` ; do
12 H=`eval echo ~$user`/.submit
14 [ -d solutions/$user ] || mkdir -p solutions/$user
16 rm -rf solutions/$user/$t
17 if [ -d $H/$t ] ; then
19 cp -dr $H/$t solutions/$user/$t
27 chown -R $EVAL_USER solutions
28 chmod -R a+r solutions