#!/bin/csh -f
#
# spit out a list of all the source files or count the number
# of lines of source code.
# usage: all-source [-l]
#

set x = `ls -1 {adt,common,render,dx++,fractal,math,pnm++}/*.[chy]`

if ( $#argv > 0 ) then
  set lines = `wc -l $x | grep total`
  echo $lines lines in $#x files.
else
  echo $x
endif
