summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-10-11 15:17:07 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-10-11 15:17:07 (GMT)
commitc617684555ae5e228f301ff0a3f8ae2950b6c41f (patch)
tree59df50b8138da2c6c433764cd41b0fcb7aefb669 /src
parente446e2e044d674ba3609619e3dd95eb340f15e09 (diff)
parentf121923bde72ef68616224a3fa1c1fe27eeb385e (diff)
downloadDoxygen-c617684555ae5e228f301ff0a3f8ae2950b6c41f.zip
Doxygen-c617684555ae5e228f301ff0a3f8ae2950b6c41f.tar.gz
Doxygen-c617684555ae5e228f301ff0a3f8ae2950b6c41f.tar.bz2
Merge pull request #233 from albert-github/feature/bug_cite_perl
Generate error message in case bibtex generation fails
Diffstat (limited to 'src')
-rw-r--r--src/cite.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cite.cpp b/src/cite.cpp
index fb96c7a..42374d0 100644
--- a/src/cite.cpp
+++ b/src/cite.cpp
@@ -211,8 +211,15 @@ void CiteDict::generatePage() const
// 5. run bib2xhtml perl script on the generated file which will insert the
// bibliography in citelist.doc
- portable_system("perl","\""+bib2xhtmlFile+"\" "+bibOutputFiles+" \""+
- citeListFile+"\"");
+ int exitCode;
+ portable_sysTimerStop();
+ if ((exitCode=portable_system("perl","\""+bib2xhtmlFile+"\" "+bibOutputFiles+" \""+
+ citeListFile+"\"")) != 0)
+ {
+ err("Problems running bibtex. Verify that the command 'perl --version' works from the command line. Exit code: %d\n",
+ exitCode);
+ }
+ portable_sysTimerStop();
QDir::setCurrent(oldDir);