starpu_check_missing.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  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. stcolor=$(tput sgr0)
  18. redcolor=$(tput setaf 1)
  19. greencolor=$(tput setaf 2)
  20. dirname=$(realpath $(dirname $0))
  21. ok()
  22. {
  23. type=$1
  24. name=$2
  25. echo "$type ${greencolor}${name}${stcolor} is in doxygen-config.cfg.in"
  26. }
  27. ko()
  28. {
  29. type=$1
  30. name=$2
  31. #echo "$type ${redcolor}${name}${stcolor} is missing from doxygen-config.cfg.in"
  32. echo $name
  33. }
  34. for d in src mpi/src starpurm/src
  35. do
  36. cd $dirname/../../../$d
  37. for f in $(find -name "*.h")
  38. do
  39. ff=$(echo $f | cut -b3-)
  40. x=$(grep -c $ff $dirname/../doxygen-config.cfg.in)
  41. if test "$x" == "0"
  42. then
  43. ko file $d/$ff
  44. #else
  45. # ok file $d/$ff
  46. fi
  47. done
  48. done
  49. cd $dirname/../../../build/doc/doxygen_dev/latex
  50. for f in $(find -name "*8h.tex")
  51. do
  52. ff=$(basename $(echo $f | cut -b3-) ".tex")
  53. x=$(grep -c $ff refman.tex)
  54. if test "$x" == "0"
  55. then
  56. ko file $ff
  57. fi
  58. done