#!/bin/csh -f

echo "***************************************************"
echo "Running 15-213 homework directory setup program..."
echo "***************************************************"

set TOP=/afs/cs/academic/class/15213-f01
set HOME=$home
set USER=$user

if (-e ${HOME}/213hw) then
    echo "There is already a file of some sort named '213hw' in your"
    echo "home directory. Rename it and rerun the checkin script."
else
    mkdir ${HOME}/213hw
    fs sa ${HOME}/213hw ${USER} all -clear

    foreach i (L1 L2 L3 L4 L5 L6 L7)
	mkdir ${HOME}/213hw/${i}
    end

    echo "I have created a secure directory named '213hw' in your"
    echo "home directory with a subdirectory for each Lab."
    echo "The directory 213hw has been set so that ONLY you can"
    echo "see what's in this directory. Please work on your assignments"
    echo "in the secure directory."
    endif
    echo ""
endif
