You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 regels
602 B

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