#!/bin/sh
#
# Simple script to scan for source and header files which are in CVS but
# have been removed
#
shopt -s  nullglob
 
here=`pwd`
topd=`find . -type d -maxdepth 1 -mindepth 1`

(
	for dir in `find $topd  -type d`
	do
		cd $here/$dir
		[ -f CVS/Entries ] || continue

		for entry in `grep -v '^[D]' CVS/Entries | cut -d/ -f2`
		do
			case $entry in
				*_meta_*)
				;;

				Makefile*)
				;;

				*)
				[ -f $entry ] || echo $dir/$entry
				;;
			esac
		done
	done
)
