#!/bin/tcsh -f # set verbose cd /class/csse/csse220/200820 set username = `whoami` if ($2 != "") then set username=$2 endif cd scripts #if ($1 == Colorize) then # ./check-turnin.sh Colorize $username $3 #$3 used for mail argument (see scripts/check-turnin.sh) #else if ($1 == Hardy) then # ./check-turnin.sh Hardy $username #else if ($1 == ConnectN) then # ./check-turnin.sh ConnectN $username if ($1 == Homework1) then echo Checking Homework1 cp data/Homework1/TestHW1.java ../turnin/$username/Homework1/ ./check-turnin.sh Homework1 $username rm ../turnin/$username/Homework1/TestHW1.java else if ($1 == Homework3) then echo Checking Homework3 cp data/Homework3/*.java ../turnin/$username/Homework3/ ./check-turnin.sh Homework3 $username rm ../turnin/$username/Homework3/TestReverser.java ../turnin/$username/Homework3/TestSieve.java else if ($1 == Hardy) then echo Checking Hardy cp data/Hardy/TestHardy.java ../turnin/$username/Hardy ./check-turnin.sh Hardy $username rm ../turnin/$username/Hardy/TestHardy.java #if ($1 == Cal) then # ./check-turnin-addiator.sh Cal $username #else if ($1 == Matrix) then # ./check-Matrix-addiator $username #else if ($1 == exam2) then # ./check-QuickSort $username #else if ($1 == Colorize) then # ./check-turnin.sh Colorize $username #else if ($1 == Pascal) then # ./check-Pascal $username #else if ($1 == Scheduler) then # ./check-turnin.sh Scheduler $username #else if ($1 == TBT) then # ./check-ThreadedBinaryTree $username else if ($1 == Markov) then cd Markov ./MarkovPerl-addiator $username else if ($1 == MarkovPart2) then cd Markov ./MarkovPerl2-addiator $username #else if ($1 == exam2) then # echo Checking exam2 # pwd # ./check-exam2-W06-07-addiator.csh $username #else if ($1 == final) then # echo Checking final # ./check-final-W06-07-addiator.csh $username #else if ($1 == SlidingBlocks) then # echo Checking SlidingBlocks # ./check-SlidingBlocks-addiator.csh $username #else if ($1 == SlidingBlocks1) then # echo Checking SlidingBlocks # ./check-SlidingBlocks1-addiator.csh $username #else if ($1 == SlidingBlocks2) then # echo Checking SlidingBlocks # ./check-SlidingBlocks2-addiator.csh $username #else if ($1 == SlidingBlocks3) then # echo Checking SlidingBlocks # ./check-SlidingBlocks3-addiator.csh $username else echo "Usage: check Homework1" echo " or: check Homework3" # echo " or: check Colorize " echo " or: check Hardy " # echo " or: check ConnectN " # echo " or: check Rational " echo " or: check Markov " echo " or: check MarkovPart2 " # echo " or: check Cal" # echo " or: check Scheduler" # echo " or: check Matrix" # echo " or: check SlidingBlocks1" # echo " or: check SlidingBlocks2" # echo " or: check SlidingBlocks3" endif cd ..