summaryrefslogtreecommitdiff
path: root/pango/check.defs
blob: a4d0a67f7c45c5ba2fda0c76f1022a11bb62b49a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

LANG=C

test -z "$srcdir" && srcdir=.
status=0

for def in $srcdir/*.def; do
	lib=${def%.def}
	lib=${lib##*/}
	so=.libs/lib${lib}-1.0.so

	test -f $so || continue
	echo Checking $def

	nm $so | grep ' T ' | cut -d' ' -f3 | sort -u > NM
	cut -f 2 $def | grep -v '^EXPORTS$' > DEF

	diff DEF NM || status=1
	rm -f DEF NM
done

exit $status