#!/bin/csh -f set topwww = /martin/b0/bryn/gdt/www echo "Compiling Web scripts ..." foreach filename ( $topwww/SRC/*.c ) set rootfile = $filename:r set rootfile = $rootfile:t echo "Compiling $rootfile ..." gcc -o $topwww/SCRIPT/$rootfile -i $topwww/SRC/$rootfile.c end