Removing uneeded file.
[and.git] / PC^2 / pc2admin / samps / compilegcc
blobe27954cb6ec19342346d1013ab633eaf69ff64ed
1 #!/bin/csh
3 set e=
4 set mainfile=$1
5 set basename=`echo $mainfile | sed 's/\.[^\.]*$//'`
6 set ext=`echo $mainfile | awk -F. '{print $NF}'`
8 if ("x$ext" == "xcpp") then
9 $e g++ -lm -o $basename $mainfile
10 else
11 $e gcc -lm -o $basename $mainfile
12 endif