6 if test -z "$DOC_MODULE"; then
7 # extract from Makefile
8 eval `grep '^DOC_MODULE' Makefile | sed 's/ //g'`
9 if test -z "$DOC_MODULE"; then
10 echo Failed extracting DOC_MODULE from Makefile 1>&2
11 echo Try setting DOC_MODULE env var manually 1>&2
16 if test -n "$REPORT_FILES"; then
17 $MAKE $REPORT_FILES || exit 1
20 test -z "$srcdir" && srcdir=.
23 if test -f "$DOC_MODULE-undeclared.txt"; then
24 undeclared=`cat "$DOC_MODULE-undeclared.txt"`
25 if test -n "$undeclared"; then
26 echo Undeclared documentation symbols: 1>&2
27 cat "$DOC_MODULE-undeclared.txt" 1>&2
31 if test -f "$DOC_MODULE-unused.txt"; then
32 unused=`cat "$DOC_MODULE-unused.txt"`
33 if test -n "$unused"; then
34 echo Unused documentated symbols: 1>&2
35 cat "$DOC_MODULE-unused.txt" 1>&2
39 if test -f "$DOC_MODULE-undocumented.txt"; then
40 if grep '^0 symbols incomplete' "$DOC_MODULE-undocumented.txt" >/dev/null &&
41 grep '^0 not documented' "$DOC_MODULE-undocumented.txt" >/dev/null; then
44 echo Incomplete or undocumented symbols: 1>&2
45 cat "$DOC_MODULE-undocumented.txt" 1>&2