summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-07-31 10:49:36 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-07-31 10:49:36 (GMT)
commit44c1f04b2bc28fbeb14b6d4e17fda0cd029b6890 (patch)
tree1ed8b9f09f905c1751b0e692b4907e9acab0ed9e /templates
parentf94a2f3a895f2601226845d16093546757a540e6 (diff)
downloadDoxygen-44c1f04b2bc28fbeb14b6d4e17fda0cd029b6890.zip
Doxygen-44c1f04b2bc28fbeb14b6d4e17fda0cd029b6890.tar.gz
Doxygen-44c1f04b2bc28fbeb14b6d4e17fda0cd029b6890.tar.bz2
Debug facility for the \cite command
When issuing doxygen with `-d cite` the temporary (copied) files / directory are not removed, i.e.: - bib*.aux - bib*.bbl - bib*.blg - bib2xhtml.pl - citelist.doc - doxygen.bst - bibTmpDir (directory)
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/html/bib2xhtml.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/html/bib2xhtml.pl b/templates/html/bib2xhtml.pl
index da6dc62..2b462d3 100755
--- a/templates/html/bib2xhtml.pl
+++ b/templates/html/bib2xhtml.pl
@@ -118,11 +118,14 @@ sub html_ent {
s/\\lfloor\b/&lfloor;/g;
s/\\rfloor\b/&rfloor;/g;
}
+$bdebug = 0;
foreach (@ARGV) {
if (/\.bib$/) {
$bibfile = $_;
$bibfile =~ s/\.bib$//;
push(@bibfiles,$bibfile);
+ } elsif ("$_" eq "-d") {
+ $bdebug = 1;
} else {
$htmlfile = $_;
}
@@ -315,5 +318,7 @@ close (OHTMLFILE);
close(HTMLFILE);
chmod($mode, "$htmlfile$$");
rename("$htmlfile$$", $htmlfile);
-unlink(@tmpfiles);
+if ($bdebug == 0) {
+ unlink(@tmpfiles);
+}
exit(0);