#!/bin/sh -
#
# $Id: chk.srcfiles,v 1.2 2000/09/20 15:23:43 bostic Exp $

f=../dist/srcfiles.in

# Check to make sure we haven't forgotten to add any files to the list.
sed -e '/^[ 	#]/d' \
    -e '/^$/d' < $f |
    awk '{print $1}' > __1
find .. -type f |
    sed -e 's/^\.\.\///' |
    egrep '\.c$|\.cpp$|\.def$|\.rc$' |
    sed -e '/dist\/build\/chk.def/d' \
        -e '/perl.DB_File\/version.c/d' |
    sort > __2

cmp __1 __2 > /dev/null ||
    (echo "<<< srcfiles.in >>> existing files" && diff __1 __2 | tee /tmp/_f)

rm -f __1 __2
