checkDoc.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. DIRS="$dirname/../../../include $dirname/../../../mpi/include $dirname/../../../starpurm/include $dirname/../../../sc_hypervisor/include"
  19. echo "Defined groups"
  20. groups=""
  21. for d in $DIRS
  22. do
  23. echo Checking $d
  24. gg=$(grep -rs defgroup $d | awk '{print $3}')
  25. echo $gg
  26. groups=$(echo $groups $gg)
  27. done
  28. for g in $groups
  29. do
  30. gg=$(echo $g | sed 's/_/__/g')
  31. x=$(grep $gg $dirname/../refman.tex)
  32. if test -z "$x"
  33. then
  34. echo "Error. Group $g not included in refman.tex"
  35. fi
  36. done
  37. echo
  38. for d in $DIRS
  39. do
  40. for f in $(find $d -name "*.h")
  41. do
  42. ff=$(echo $f | awk -F'/' '{print $NF}')
  43. x=$(grep $ff $dirname/../doxygen-config.cfg.in)
  44. if test -z "$x"
  45. then
  46. echo Error. $f not included in doxygen-config.cfg.in
  47. fi
  48. done
  49. done
  50. #ls $dirname/../../../build/doc/doxygen/latex/starpu*tex
  51. for f in $dirname/../../../build/doc/doxygen/latex/starpu*tex
  52. do
  53. x=$(grep $(basename $f .tex) $dirname/../refman.tex)
  54. if test -z "$x"
  55. then
  56. echo Error. $f not included in refman.tex
  57. fi
  58. done