Selaa lähdekoodia

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

Nathalie Furmento 12 vuotta sitten
vanhempi
commit
527a6e236c
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  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
+