Browse Source

doc/doxygen/dev/starpu_check_undocumented.sh: fix variables extraction

Nathalie Furmento 10 years ago
parent
commit
44dfb97e8f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/doxygen/dev/starpu_check_undocumented.sh

+ 1 - 1
doc/doxygen/dev/starpu_check_undocumented.sh

@@ -92,7 +92,7 @@ if [ "$1" == "--macro" ] || [ "$1" == "" ] ; then
 fi
 
 if [ "$1" == "--var" ] || [ "$1" == "" ] ; then
-    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)
+    variables=$(grep --exclude-dir=.svn -rs -E "(getenv|get_env)" $SRC| tr ' ' '\012'|grep -E "(getenv|get_env)" | grep "\"" | sed 's/.*("//' | sed 's/").*//'|tr -d '",'|sort|uniq)
     for variable in $variables ; do
 	x=$(grep "$variable" $dirname/../chapters/40environment_variables.doxy | grep "\\anchor")
 	if test "$x" == "" ; then