Files
mongo/dist/s_lang
Keith Bostic 9635e00594 Don't fail if we don't find a wiredtiger_wrap.c file in one of the
lang directories, it just means it wasn't configured.
2015-01-24 10:11:57 -05:00

26 lines
543 B
Bash
Executable File

#! /bin/sh
# Check lang directories for potential name conflicts
t=__wt.$$
trap 'rm -f $t; exit 0' 0 1 2 3 13 15
cd ../lang
for d in *; do
f=`find $d -name 'wiredtiger_wrap.c'`
test -z "$f" && continue
sed -e '/SWIGINTERN.*__wt_[a-z][a-z]*_[a-z]/!d' \
-e '/__wt_[^(]*__.*(/d' \
-e '/_wrap/d' \
-e "/_${d}_/d" \
$f > $t
test -s $t && {
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
echo "$l: potential SWIG naming conflict"
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
cat $t
}
done