| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
export MAKEFLAGS="" |
| 4 |
top_srcdir="$(make -s echo-topdir 2>/dev/null)" |
| 5 |
|
| 6 |
# |
| 7 |
# Check for Doxygen warnings |
| 8 |
# |
| 9 |
nfiles="$(grep -c "Parsing file" < "${top_srcdir}/doc/doxygen.log")" |
| 10 |
if nfails="$(grep -c Warning: "${top_srcdir}/doc/doxygen.log" 2>/dev/null)"; then |
| 11 |
grep Warning: "${top_srcdir}/doc/doxygen.log" | sed 's/\(.\{75\}\)...*/\1 .../' |
| 12 |
fi |
| 13 |
|
| 14 |
echo "$nfiles files, $nfails visible errors in documentation" |
| 15 |
|
| 16 |
# Make errors non-fatal on Darwin, because Travis-CI always |
| 17 |
# has outdated software. |
| 18 |
if test "$(uname -s)" = "Darwin"; then |
| 19 |
exit 0 |
| 20 |
fi |
| 21 |
|
| 22 |
if test "$nfails" != "0"; then |
| 23 |
exit 1 |
| 24 |
fi |
| 25 |
|
| 26 |
exit 0 |
| 27 |
|