chk.def
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. #!/bin/sh -
  2. #
  3. # $Id: chk.def,v 1.4 2000/12/12 18:20:59 bostic Exp $
  4. #
  5. # Check to make sure we haven't forgotten to add any interfaces
  6. # to the Win32 libdb.def file.
  7. # Run from the top-level directory.
  8. [ -f db_config.h ] && cd ..
  9. f=build_win32/libdb.def
  10. t1=/tmp/__1
  11. t2=/tmp/__2
  12. sed '/; /d' $f |
  13.     egrep @ |
  14.     awk '{print $1}' |
  15.     sed -e '/db_xa_switch/d' 
  16. -e '/^__/d' -e '/^;/d' |
  17.     sort > ${t1}
  18. egrep __P include/db.src |
  19.     sed '/^[a-z]/!d' |
  20.     awk '{print $2}' |
  21.     sed 's/^*//' |
  22.     sed '/^__/d' | sort > ${t2}
  23. if cmp -s ${t1} ${t2} ; then
  24. :
  25. else
  26. echo "<<< libdb.def"
  27. echo ">>> DB include files"
  28. diff ${t1} ${t2}
  29. fi
  30. # Check to make sure we don't have any extras in the libdb.def file.
  31. sed '/; /d' $f |
  32.     egrep @ |
  33.     awk '{print $1}' |
  34.     sed -e '/__db_global_values/d' > ${t1}
  35. for i in `cat ${t1}`; do
  36. if egrep $i */*.c > /dev/null; then
  37. :
  38. else
  39. echo "$f: $i not found in DB sources"
  40. fi
  41. done
  42. rm -f ${t1} ${t2}