summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Elstner <daniel.kitta@gmail.com>2015-08-21 03:01:15 +0200
committerDaniel Elstner <daniel.kitta@gmail.com>2015-08-21 03:01:15 +0200
commit7ad09c260521d4261b961f3727bd8c16d9659102 (patch)
tree3fb8d0fd6c5e70c83e2aa5a7929dd4be1c9afea8
parentf682be2cc013d00e2e0233e85630004555f920e0 (diff)
downloadmm-common-7ad09c260521d4261b961f3727bd8c16d9659102.tar.gz
doc-postprocess.pl: Un-break tag file references
* util/doc-postprocess.pl: For some reason, recent versions of Doxygen output the full path to referenced tag files. This is bad since it breaks doc-install.pl, and also because it leaks local path names into source tarballs. Thus, strip the directory prefix here.
-rw-r--r--util/doc-postprocess.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/doc-postprocess.pl b/util/doc-postprocess.pl
index 6630a91..a1bcd28 100644
--- a/util/doc-postprocess.pl
+++ b/util/doc-postprocess.pl
@@ -106,6 +106,12 @@ foreach my $filename (map(bsd_glob($_, GLOB_NOSORT), @ARGV))
s/^(<h\d>|)template&lt;/$1template &lt;/;
}
+ # For some reason, recent versions of Doxygen output the full path to
+ # referenced tag files. This is bad since it breaks doc-install.pl,
+ # and also because it leaks local path names into source tarballs.
+ # Thus, strip the directory prefix here.
+ s| doxygen="[^":]*/([^":]+\.tag):| doxygen="$1:|g;
+
s/&copy;/&#169;/g;
s/&mdash;/&#8212;/g;
s/&ndash;/&#8211;/g;