Explorar o código

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

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
527a6e236c
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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
+