diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-07-31 19:02:14 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-07-31 19:02:14 (GMT) |
commit | 0b0da24cdb9b47309b00eccd8f352f3bad3906fe (patch) | |
tree | 5d14e86e82eedb8c30468fc9768cc3c6b8b6095c /src/cite.cpp | |
parent | f01aa606027faa7fd5b3202999a6e39ea0e821b3 (diff) | |
parent | a0a7ed0c244dbfd88b24a32410681f7a90e0f9db (diff) | |
download | Doxygen-0b0da24cdb9b47309b00eccd8f352f3bad3906fe.zip Doxygen-0b0da24cdb9b47309b00eccd8f352f3bad3906fe.tar.gz Doxygen-0b0da24cdb9b47309b00eccd8f352f3bad3906fe.tar.bz2 |
Merge branch 'master' of github.com:doxygen/doxygen
Diffstat (limited to 'src/cite.cpp')
-rw-r--r-- | src/cite.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cite.cpp b/src/cite.cpp index 044651b..fd6fe3e 100644 --- a/src/cite.cpp +++ b/src/cite.cpp @@ -22,6 +22,7 @@ #include "portable.h" #include "resourcemgr.h" #include "util.h" +#include "debug.h" #include <qfile.h> #include <qfileinfo.h> @@ -30,10 +31,6 @@ #include <map> #include <string> -// Remove the temporary files -#define RM_TMP_FILES (true) -//#define RM_TMP_FILES (false) - const char *bibTmpFile = "bibTmpFile_"; const char *bibTmpDir = "bibTmpDir/"; @@ -232,6 +229,8 @@ void CitationManager::generatePage() // do not generate an empty citations page if (isEmpty()) return; // nothing to cite + bool citeDebug = Debug::isFlagSet(Debug::Cite); + // 0. add cross references from the bib files to the cite dictionary QFile f; const StringVector &citeDataList = Config_getList(CITE_BIB_FILES); @@ -308,7 +307,7 @@ void CitationManager::generatePage() int exitCode; Portable::sysTimerStop(); if ((exitCode=Portable::system("perl","\""+bib2xhtmlFile+"\" "+bibOutputFiles+" \""+ - citeListFile+"\"")) != 0) + citeListFile+"\"" + (citeDebug ? " -d" : ""))) != 0) { err("Problems running bibtex. Verify that the command 'perl --version' works from the command line. Exit code: %d\n", exitCode); @@ -402,7 +401,7 @@ void CitationManager::generatePage() } // 9. Remove temporary files - if (RM_TMP_FILES) + if (!citeDebug) { thisDir.remove(citeListFile); thisDir.remove(doxygenBstFile); |