2008-01-28 21:02:44 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
LANG=C
|
|
|
|
|
if test -z "$DOC_MODULE"; then
|
|
|
|
|
# extract from Makefile
|
|
|
|
|
eval `grep '^DOC_MODULE' Makefile | sed 's/ //g'`
|
|
|
|
|
if test -z "$DOC_MODULE"; then
|
|
|
|
|
echo Failed extracting DOC_MODULE from Makefile 1>&2
|
|
|
|
|
echo Try setting DOC_MODULE env var manually 1>&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test -z "$srcdir" && srcdir=.
|
2008-06-12 21:03:19 -04:00
|
|
|
stat=0
|
2008-01-28 21:02:44 -05:00
|
|
|
|
2008-09-03 20:50:49 -04:00
|
|
|
if test -f "$DOC_MODULE-undeclared.txt"; then
|
|
|
|
|
undeclared=`cat "$DOC_MODULE-unused.txt"`
|
|
|
|
|
if test -n "$undeclared"; then
|
|
|
|
|
echo Undeclared documentation symbols: 1>&2
|
|
|
|
|
cat "$DOC_MODULE-undeclared.txt" 1>&2
|
|
|
|
|
stat=1
|
|
|
|
|
fi
|
2008-01-28 21:02:44 -05:00
|
|
|
fi
|
|
|
|
|
if test -f "$DOC_MODULE-unused.txt"; then
|
|
|
|
|
unused=`cat "$DOC_MODULE-unused.txt"`
|
|
|
|
|
if test -n "$unused"; then
|
|
|
|
|
echo Unused documentated symbols: 1>&2
|
|
|
|
|
cat "$DOC_MODULE-unused.txt" 1>&2
|
2008-06-12 21:03:19 -04:00
|
|
|
stat=1
|
2008-01-28 21:02:44 -05:00
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
if test -f "$DOC_MODULE-undocumented.txt"; then
|
2008-06-12 21:03:19 -04:00
|
|
|
if grep '^0 symbols incomplete' "$DOC_MODULE-undocumented.txt" >/dev/null &&
|
|
|
|
|
grep '^0 not documented' "$DOC_MODULE-undocumented.txt" >/dev/null; then
|
|
|
|
|
:
|
|
|
|
|
else
|
2008-01-28 21:02:44 -05:00
|
|
|
echo Incomplete or undocumented symbols: 1>&2
|
|
|
|
|
cat "$DOC_MODULE-undocumented.txt" 1>&2
|
2008-06-12 21:03:19 -04:00
|
|
|
stat=1
|
2008-01-28 21:02:44 -05:00
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
2008-06-12 21:03:19 -04:00
|
|
|
exit $stat
|