functions_undocumented.sh 444 B

1234567891011121314151617
  1. #!/bin/bash
  2. stcolor=$(tput sgr0)
  3. redcolor=$(tput setaf 1)
  4. functions=$(grep 'starpu.*(.*);' include/*.h | awk -F':' '{print $2}' | sed 's/(.*//' | sed 's/.* //'| tr -d ' ' | tr -d '*')
  5. for func in $functions ; do
  6. #echo Processing function $func
  7. x=$(grep $func doc/starpu.texi | grep deftypefun)
  8. if test "$x" == "" ; then
  9. echo "Error. Function ${redcolor}${func}${stcolor} is not (or incorrectly) documented"
  10. fi
  11. done