diff options
Diffstat (limited to 'libdb/test/scr001/chk.code')
| -rw-r--r-- | libdb/test/scr001/chk.code | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/libdb/test/scr001/chk.code b/libdb/test/scr001/chk.code deleted file mode 100644 index df5a0fe9d..000000000 --- a/libdb/test/scr001/chk.code +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -# -# $Id$ -# -# Check to make sure that the code samples in the documents build. - -d=../.. - -[ -d $d/docs_src ] || { - echo 'FAIL: cannot find source distribution directory.' - exit 1 -} -[ -f ../libdb.a ] || (cd .. && make libdb.a) || { - echo 'FAIL: unable to find or build libdb.a' - exit 1 -} - -for i in `find $d/docs_src -name '*.cs'`; do - echo " compiling $i" - sed -e 's/m4_include(\(.*\))/#include <\1>/g' \ - -e 's/m4_[a-z]*[(\[)]*//g' \ - -e 's/(\[//g' \ - -e '/argv/!s/])//g' \ - -e 's/dnl//g' \ - -e 's/__GT__/>/g' \ - -e 's/__LB__/[/g' \ - -e 's/__LT__/</g' \ - -e 's/__RB__/]/g' < $i > t.c - if cc -Wall -Werror -I.. t.c ../libdb.a -o t; then - : - else - echo "FAIL: unable to compile $i" - exit 1 - fi -done - -exit 0 |
