${info}
+
+test -e ${info} || exit 1
+
+{
+ # remove system includes with with inlined functions
+ lcov -q -l ${info} | grep -v "`cd ${srcdir:-.} && pwd`"
+ # remove test programs
+ lcov -q -l ${info} | grep "/test\|/torture\|_test[.]c$"
+} |
+cut -d: -f1 |
+xargs lcov -q -r ${info} > ${geninfo} &&
+cd ${tdir} &&
+genhtml -q --prefix=$cwd/ --output-directory . ${geninfo} &&
+find . -name '*.gcov.html' |
+xargs perl -e '
+while (<>) {
+ if (m:]*>:) { $pre=1; }
+ if ($pre && m:
]*>:) {
+ $pre=0;
+ if ($uncovered) {
+ print $uncovered;
+ $uncovered = "";
+ }
+ }
+ if ($pre) {
+ s/<[^>]+>//g;
+
+ s/<//g; s/"/\"/g; s/&/&/g;
+
+ if (m/^ *\d+ *[1-9]\d* :/) {
+ if ($uncovered) {
+ print $uncovered;
+ $uncovered = "";
+ }
+ }
+ else {
+ if ($uncovered) {
+ if (m/^[^:]+: [{]/) { # Hack: show line number if line starts with {
+ s/^ +(\d+)[^:]+:/$1:/;
+ }
+ else {
+ s/^ +(\d+)[^:]+:/sprintf("%*s", 1 + length($1), " ")/e;
+ }
+ $uncovered .= $f . ":" . $_;
+ }
+ elsif (m/^ *\d+ *0 :/) {
+ for ($f = $ARGV) {
+ s:^[.]'$cwd/'::o;
+ s:[.]gcov[.]html$::;
+ }
+ s/^ +(\d+)[^:]+:/$1:/;
+ $uncovered = $f . ":" . $_;
+ }
+ }
+ }
+}
+' /dev/null
+
+rc=$?
+cd /
+rm -rf $tdir
+exit $rc
diff --git a/libs/sofia-sip/utils/Doxyfile.in b/libs/sofia-sip/utils/Doxyfile.in
index 5eeb82130c..f2a65a6b1f 100644
--- a/libs/sofia-sip/utils/Doxyfile.in
+++ b/libs/sofia-sip/utils/Doxyfile.in
@@ -21,7 +21,9 @@ OUTPUT_DIRECTORY = ../man
@INCLUDE_PATH = . @srcdir@
@INCLUDE = ../libsofia-sip-ua/docs/Doxyfile.aliases
-@INCLUDE = ../libsofia-sip-ua/docs/Doxyfile.rfc
+# @INCLUDE = ../libsofia-sip-ua/docs/Doxyfile.rfc
+# Only @RFC3263 is used now
+ALIASES += RFC3263="RFC 3263"
FILE_PATTERNS = *.h *.c