checkDoc.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2013,2014,2016,2017,2019 CNRS
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. #
  17. dirname=$(dirname $0)
  18. echo "Defined groups"
  19. groups=$(grep -rs defgroup $dirname/../../../include | awk '{print $3}')
  20. echo $groups
  21. echo
  22. for g in $groups
  23. do
  24. gg=$(echo $g | sed 's/_/__/g')
  25. x=$(grep $gg $dirname/../refman.tex)
  26. if test -z "$x"
  27. then
  28. echo "Error. Group $g not included in refman.tex"
  29. fi
  30. done
  31. for f in $(find $dirname/../../../include -name "starpu*.h")
  32. do
  33. ff=$(echo $f | awk -F'/' '{print $NF}')
  34. x=$(grep $ff $dirname/../doxygen-config.cfg.in)
  35. if test -z "$x"
  36. then
  37. echo Error. $f not included in doxygen-config.cfg.in
  38. fi
  39. done
  40. for f in $dirname/../../../build/doc/doxygen/latex/starpu*tex
  41. do
  42. x=$(grep $(basename $f .tex) $dirname/../refman.tex)
  43. if test -z "$x"
  44. then
  45. echo Error. $f not included in refman.tex
  46. fi
  47. done