checkDoc.sh 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. x=$(grep $ff $dirname/../chapters/520_files.doxy)
  49. if test -z "$x"
  50. then
  51. echo Error. $f not included in 520_files.doxy
  52. fi
  53. done
  54. done
  55. echo
  56. for p in starpu sc__hypervisor
  57. do
  58. for f in $dirname/../../../build/doc/doxygen/latex/${p}*tex
  59. do
  60. x=$(grep $(basename $f .tex) $dirname/../refman.tex)
  61. if test -z "$x"
  62. then
  63. echo Error. $f not included in refman.tex
  64. fi
  65. done
  66. done