Commit 5f576f8b authored by Kevin Harms's avatar Kevin Harms

Add checking of exit status from pdflatex calls. If the pdflatex

program fails, print an error at the end of the log.


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@341 3b7491f3-a168-0410-bf4b-c445ed680a29
parent d7371539
......@@ -990,8 +990,22 @@ system "epstopdf file-access-shared.eps";
#system "gnuplot types-pdf.gplt";
# generate summary PDF
system "pdflatex -halt-on-error summary.tex > latex.output";
system "pdflatex -halt-on-error summary.tex > latex.output2";
$system_rc = system "pdflatex -halt-on-error summary.tex > latex.output";
if($system_rc)
{
print("LaTeX generation (phase1) failed [$system_rc], aborting summary creation.\n");
print("error log:\n");
system("tail latex.output");
exit(1);
}
$system_rc = system "pdflatex -halt-on-error summary.tex > latex.output2";
if($system_rc)
{
print("LaTeX generation (phase2) failed [$system_rc], aborting summary creation.\n");
print("error log:\n");
system("tail latex.output2");
exit(1);
}
# get back out of tmp dir and grab results
chdir $orig_dir;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment