#! /bin/sh
#
# Last modified on Wed Jan 11 07:37:03 PST 1995 by kalsow
#

TOP=`pwd`
DIR=$1 ; shift

#-------------------------------------- check for missing copyright notices ---
cd $DIR
for f in *.i3 *.m3 *.ig *.mg *.tex *.tmpl *.c *.lsl *.lm3 *.obl *.evt m3makefile
do
  if [ -r "$f" ]; then
    ( head -20 "$f" | egrep -i "Copyright|<HTML>" > /dev/null ) || \
      ( echo "   ***   "  missing copyright: $DIR/"$f" ;\
        echo "   ***   "  missing copyright: $DIR/"$f" >> $TOP/COPYRIGHT.bugs )
  fi
done
