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

Miklos Vajna vmiklos at kemper.freedesktop.org
Tue Nov 30 10:02:14 PST 2010


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

New commits:
commit 4f228e134d2c9c0ccb4825d9d9c582b068536d29
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Mon Nov 22 14:33:57 2010 +0100

    Add script to find undocumented classes

diff --git a/scratch/find-undocumented-classes.sh b/scratch/find-undocumented-classes.sh
new file mode 100755
index 0000000..58a133b
--- /dev/null
+++ b/scratch/find-undocumented-classes.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# finds undocumented classes in the current directory (recursive)
+
+filter=
+quiet=n
+if [ "$1" = "-q" ]; then
+    filter=">/dev/null"
+    quiet=y
+fi
+
+doxygen=$(mktemp -d)
+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
+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'
+rm -rf $doxygen
+
+# vim:set shiftwidth=4 softtabstop=4 expandtab:


More information about the Libreoffice-commits mailing list