#!/bin/sh
#
# Simple script to scan for source and header files which do not appear
# to be in the CVS
#
shopt -s  nullglob
 
here=`pwd`
dirs=`find . -type d`


(
	for dir in $dirs
	do
		cd $here/$dir

		for file in *
		do
			[ $file = "CVS" ] && continue

			if [ -L $file ]
			then
				:
			else
				if [ -f CVS/Entries ]
				then
					grep -q "/$file/" CVS/Entries || echo $dir/$file
				else
					: echo $dir/$file "(no CVS)"
				fi
			fi
		done
	done

)	| fgrep -v -e closure -e meta_unload -e .html -e .tab. -e .bz2
