#! /bin/csh -fe
# makes an HTML page "index.html" with pointers to all files
# "index.html" and "*-sampler.html" under the current directory.
set temp = ".temp.html"
find ./*/. \( -name 'index.html' -o -name '*sampler.html' \) -print | sort > .pages
wc -l .pages
if ( -z .pages ) then
echo "no index pages found"
/bin/rm .pages
exit 1
endif
cat < ${temp}
`pwd`