starpu_funcs.sh 679 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # Note: expects Coccinelle's spatch command n the PATH
  3. # See: http://coccinelle.lip6.fr/
  4. stcolor=$(tput sgr0)
  5. redcolor=$(tput setaf 1)
  6. greencolor=$(tput setaf 2)
  7. functions=$(spatch -sp_file tools/dev/starpu_funcs.cocci $(find include -name '*.h'))
  8. for func in $functions ; do
  9. fname=$(echo $func|awk -F ':' '{print $1}')
  10. location=$(echo $func|awk -F ':' '{print $2}')
  11. x=$(grep $fname doc/starpu.texi | grep deftypefun)
  12. if test "$x" == "" ; then
  13. echo "function ${redcolor}${fname}${stcolor} at location $location is not (or incorrectly) documented"
  14. else
  15. echo "function ${greencolor}${fname}${stcolor} at location $location is correctly documented"
  16. fi
  17. done