Preserve doxygen.warnings.log from last report.
Direct doxygen warnings to doxygen.log.
doxygen.warnings.report.sh moves this to doxygen.warnings.log, so
subsequent normal oxygen builds don't overwrite it.
--- a/.hgignore Wed Nov 07 13:32:23 2012 -0800
+++ b/.hgignore Wed Nov 07 14:29:47 2012 -0800
@@ -20,6 +20,7 @@
\.pcap$
\.mob$
\.routes$
+^doc/doxygen.log$
^doc/doxygen.warnings.log$
^doc/(manual|models|tutorial|tutorial-pt-br)/build
^doc/(manual|models|tutorial|tutorial-pt-br)/figures/.*\.(eps|pdf|png)$
--- a/doc/doxygen.conf Wed Nov 07 13:32:23 2012 -0800
+++ b/doc/doxygen.conf Wed Nov 07 14:29:47 2012 -0800
@@ -646,7 +646,7 @@
# and error messages should be written. If left blank the output is written
# to stderr.
-WARN_LOGFILE = doc/doxygen.warnings.log
+WARN_LOGFILE = doc/doxygen.log
#---------------------------------------------------------------------------
# configuration options related to the input files
--- a/doc/doxygen.warnings.report.sh Wed Nov 07 13:32:23 2012 -0800
+++ b/doc/doxygen.warnings.report.sh Wed Nov 07 14:29:47 2012 -0800
@@ -10,7 +10,7 @@
conf=$DIR/doxygen.conf
-sed -i.bak -E '/^EXTRACT_ALL |^HAVE_DOT /s/YES/no/' $conf
+sed -i.bak -E '/^EXTRACT_ALL |^HAVE_DOT |^WARNINGS /s/YES/no/' $conf
rm -f $conf.bak
echo -n "Rebuilding doxygen docs with full errors..."
@@ -26,16 +26,21 @@
exit 1
fi
+
+# Save the log file
+log=$DIR/doxygen.warnings.log
+
+mv $DIR/doxygen.log $log
+
# Now we're ready to summarize the log
-logfile=$DIR/doxygen.warnings.log
echo
echo "Summary Report of Doxygen warnings:"
echo
echo "Count of warning by module:"
echo "Count Module"
-grep "^$ROOT" $logfile | \
+grep "^$ROOT" $log | \
cut -d ':' -f 1 | \
sed "s|$ROOT||g" | \
cut -d '/' -f 1-3 | \
@@ -46,9 +51,9 @@
echo
undocparam=` \
-grep -v "^$ROOT" $logfile | \
+grep -v "^$ROOT" $log | \
grep -v "not generated, too many nodes" | \
- grep "^ parameter '" $logfile | \
+ grep "^ parameter '" $log | \
wc -l | \
sed 's/^[ \t]*//;s/[ \t]*$//' `