1#!/bin/sh - 2# 3# $Id: chk.srcfiles,v 12.5 2008/05/07 12:43:53 bschmeck Exp $ 4# 5# Check to make sure we haven't forgotten to add any files to the list 6# of source files Windows uses to build its dsp files. 7 8d=../.. 9 10[ -f $d/LICENSE ] || { 11 echo 'FAIL: cannot find source distribution directory.' 12 exit 1 13} 14 15f=$d/dist/srcfiles.in 16t1=__1 17t2=__2 18 19sed -e '/^[ #]/d' \ 20 -e '/^db_server_clnt.c/d' \ 21 -e '/^db_server_svc.c/d' \ 22 -e '/^db_server_xdr.c/d' \ 23 -e '/^examples_c\/csv\/csv_local.c/d' \ 24 -e '/^gen_db_server.c/d' \ 25 -e '/^$/d' < $f | 26 awk '{print $1}' > $t1 27find $d -type f | 28 sed -e 's/^\.\.\/\.\.\///' \ 29 -e '/^build[^_]/d' \ 30 -e '/^dist\//d' \ 31 -e '/^libdb_java\/java_stat_auto.c/d' \ 32 -e '/^mod_db4\//d' \ 33 -e '/^perl\//d' \ 34 -e '/^php_db4\//d' \ 35 -e '/^rpc_server\/c\/gen_db_server.c/d' \ 36 -e '/^test\//d' \ 37 -e '/^test_erlang/d' \ 38 -e '/^test_server/d' \ 39 -e '/^test_thread/d' \ 40 -e '/^test_vxworks/d' | 41 egrep '\.c$|\.cpp$|\.def$|\.rc$' | 42 sort > $t2 43 44cmp $t1 $t2 > /dev/null || { 45 echo "<<< srcfiles.in >>> existing files" 46 diff $t1 $t2 47 exit 1 48} 49 50exit 0 51