Browse Source

tools/dev/starpu_check_undocumented.sh: check if variables are documented or not

Nathalie Furmento 12 years ago
parent
commit
527a6e236c
1 changed files with 10 additions and 0 deletions
  1. 10 0
      tools/dev/starpu_check_undocumented.sh

+ 10 - 0
tools/dev/starpu_check_undocumented.sh

@@ -64,3 +64,13 @@ for macro in $macros ; do
     fi
 done
 
+echo
+
+variables=$(grep --exclude-dir=.svn -rs -E "(getenv|get_env)" src/| tr ' ' '\012'|grep -E "(getenv|get_env)" | grep "\"" | sed 's/.*("//' | sed 's/").*//'|sort|uniq)
+for variable in $variables ; do
+    x=$(grep "$variable" doc/starpu.texi doc/chapters/*texi | grep defvr)
+    if test "$x" == "" ; then
+	echo "variable ${redcolor}${variable}${stcolor} is not (or incorrectly) documented"
+    fi
+done
+