[Libreoffice-commits] .: scratch/find-undocumented-classes.sh

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Dec 3 04:17:09 PST 2010


 scratch/find-undocumented-classes.sh |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit adb2c4f2792c3f2c8162aad4eb88a1bf84e8fcd8
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Fri Dec 3 13:13:00 2010 +0100

    find-undocumented-classes: allow checking a few files only
    
    Previously the current directory was checked (recursively), now in case
    additional parameters present, then they will be handled as file or
    directory names and those will be checked only instead of the whole
    current directory.

diff --git a/scratch/find-undocumented-classes.sh b/scratch/find-undocumented-classes.sh
index 58a133b..3040660 100755
--- a/scratch/find-undocumented-classes.sh
+++ b/scratch/find-undocumented-classes.sh
@@ -7,6 +7,7 @@ quiet=n
 if [ "$1" = "-q" ]; then
     filter=">/dev/null"
     quiet=y
+    shift
 fi
 
 doxygen=$(mktemp -d)
@@ -14,13 +15,17 @@ eval doxygen -g $doxygen/doxygen.cfg $filter
 sed -i "/HTML_OUTPUT/s|html|$doxygen/html|" $doxygen/doxygen.cfg
 sed -i '/GENERATE_LATEX/s/= YES/= NO/' $doxygen/doxygen.cfg
 sed -i '/RECURSIVE/s/= NO/= YES/' $doxygen/doxygen.cfg
+# do we have any arguments?
+if [ -n "$*" ]; then
+    sed -i "/^INPUT[^_]/s|=.*|= $*|" $doxygen/doxygen.cfg
+fi
 eval doxygen $doxygen/doxygen.cfg $filter 2> $doxygen/errors.txt
 if [ "$quiet" == "n" ]; then
     echo
     echo "The following classes are undocumented:"
     echo
 fi
-cat $doxygen/errors.txt|grep 'Warning: Compound.*is not documented'
+cat $doxygen/errors.txt|grep -i 'Warning: Compound.*is not documented'
 rm -rf $doxygen
 
 # vim:set shiftwidth=4 softtabstop=4 expandtab:


More information about the Libreoffice-commits mailing list