# Script for testing all examples programs with the GNU C++ Compiler set Compile = "g++ -I." echo " " echo "Testing ex01-01.cpp" $Compile ex01-01.cpp if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex01-02.cpp" $Compile ex01-02.cpp if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex01-03.cpp" $Compile ex01-03.cpp if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex01-04.cpp" $Compile ex01-04.cpp if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex02-01.cpp" $Compile ex02-01.cpp if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex02-02.cpp" $Compile ex02-02.cpp if ($status == 0) then a.out ex17-01.out /usr/bin/rm shape.o /usr/bin/rm screen.o /usr/bin/rm a.out endif