#!/bin/csh -f

# No need to change this file from term to term


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

set HOME=$home
set USER=$user

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

    foreach i (archlaba archlabb archlabc)
	mkdir ${HOME}/349hw/${i}
    end

    echo "I have created a secure directory named '349hw' in your"
    echo "home directory with a subdirectory for each Lab."
    echo "The directory 349hw 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
