#!/usr/bin/env bash
# Sends out marks for students based on the folder structure used by Submit,
# the coursework submission system used in the School of Informatics at the
# University of Edinburgh.
#
# This script assumes the following folder structure:
#
# $DIR/sXXXXXXX/$CW/$FILE
#
# The variable DIR refers to the directory passed in as an argument to the
# script. The variable XXXXXXX refers to the student ID, and it is assumed
# that
#
# sXXXXXXX@sms.ed.ac.uk
#
# is a valid email address. The variable $CW refers to the coursework
# of which the students are meant to be notified (e.g., cw1). The directory
# DIR/sXXXXXXX/$CW/ should only contain a single file, which should be
# specified using the FILE parameter.
#
# Usage:
#
# ./send_marks.sh [DIR] [CW] [FILE]
DIR=""
CW=""
FILE=""
for; do
SUBJ="Mark for coursework "
BODY=""
SID=
ADDR="@sms.ed.ac.uk"
CMD="echo \"\" | mail -c wadler@inf.ed.ac.uk -s \"\" -a \"\" \"\""
if
then
fi
done