#!/bin/csh # # Usage: setup # setting up the account. # set DIR = /afs/nd.edu/coursesp.00/math/math211.01 ## touch "$DIR/.taylor_record/setup/$USER" if ( { test -d "math211hw" } ) then echo " You already have a directory named math211hw." echo " You should rename it before running this script. " exit(-1) endif set math211bin = `grep "$DIR/bin" "$HOME/.cshrc"` if ( "$math211bin" != '') then echo "Check your .cshrc file. It already has a line $DIR/bin." exit(-1) else echo "Adding the path for the course." echo 'set path = ( $path '"$DIR"'/bin )' \ >>"$HOME/.cshrc" echo "Done." endif echo "Making a directory math211hw for doing homeworks." mkdir $HOME/math211hw echo "Done." echo "Setting permissions for math211hw." fs setacl $HOME/math211hw system:anyuser none fs setacl $HOME/math211hw taylor rlid echo "Done." echo "To use the new setting, LOGOUT and then re-login."