浏览代码

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

Nathalie Furmento 12 年之前
父节点
当前提交
527a6e236c
共有 1 个文件被更改,包括 10 次插入0 次删除
  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
+