File: s_lang

package info (click to toggle)
wiredtiger 3.2.1-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 25,456 kB
  • sloc: ansic: 102,922; python: 52,573; sh: 6,915; java: 6,130; cpp: 2,311; makefile: 1,018; xml: 176
file content (28 lines) | stat: -rwxr-xr-x 552 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh

# Check lang directories for potential name conflicts
t=__wt.$$
trap 'rm -f $t' 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
		exit 1
	}
done

exit 0