2 # Create contestant directories with their solutions and test logs
4 [ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; }
14 for a in `awk </etc/passwd -F: '{ if ($3 >= '$CT_UID_MIN' && $3 <= '$CT_UID_MAX') print $1; }'` ; do
19 cp -a `find $H/template -type f -name ".*"` $a/$a/
20 if [ -d $H/solutions/$a ] ; then cp -a $H/solutions/$a $a/$a/solutions ; fi
21 if [ -d $H/testing/$a ] ; then cp -a $H/testing/$a $a/$a/testing ; fi