#!/bin/sh
#
# Attempt to find all the files with an older copyright that needs
# to be updated.
#
# Parameter 1 is the year to search

find . -type f | while read f
do
	case "$f" in
	*/.svn/*|*/tmp/*|*/lib/*|*/bin/*|*/arch/*|*/doc/html/libsswf/*) continue;;
	*/news/*|*.pdf) continue;;
	*.jpg|*.png|*.ppm|*.tga|*.bz2|*.zip|*.gz|*.tar|*.swp|*/Makefile.in) continue;;
	esac
	if grep -q "$1" "$f"
	then
		echo "$f"
	fi
done
