summaryrefslogtreecommitdiff
path: root/trunk/docs/check.docs
blob: 9d092e8d4832b5d69fbaeb11947f5bd739ece71b (plain)
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
29
#!/bin/sh

LANG=C

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

if ! test -f pango-undocumented.txt -a -f pango-unused.txt; then
	echo At least one of pango-undocumented.txt and pango-unused.txt not found.
	echo Skipping test.
	exit 0
fi

status=0

unused=`cat pango-unused.txt`
if test -n "$unused"; then
	echo Unused documentated symbols:
	cat pango-unused.txt
	status=1
fi
if ! grep '^0 symbols incomplete' pango-undocumented.txt >/dev/null ||
   ! grep '^0 not documented'     pango-undocumented.txt >/dev/null; then
	echo Incomplete or undocumented symbols:
	cat pango-unused.txt
	status=1
fi

exit $status