diff options
author | Robert Managan <managan1@llnl.gov> | 2009-07-22 04:56:52 (GMT) |
---|---|---|
committer | Robert Managan <managan1@llnl.gov> | 2009-07-22 04:56:52 (GMT) |
commit | 069ce5a194b250c09667606c2e926747f5f083aa (patch) | |
tree | e68c1126b8e261b55abe10e78067c59554330a8d /src/engine/SCons/Tool/pdflatex.py | |
parent | 9915e5215af5dc08f58cfc91f08aabc1b8ae2cd5 (diff) | |
download | SCons-069ce5a194b250c09667606c2e926747f5f083aa.zip SCons-069ce5a194b250c09667606c2e926747f5f083aa.tar.gz SCons-069ce5a194b250c09667606c2e926747f5f083aa.tar.bz2 |
Update tex builder to use the -recorder option.
This was prompted because MikTeX, used on Windows,
does not put the same information on files opened
into the log file. The -recorder option gives a .fls
file that is the same on all platforms.
We still use the .log file contents to find warnings
and errors that mean we need to rerun latex...
Also add message about errors so user does not have
to scroll up through all the latex output to find
if there was an error.
Update all tests to handle the new command line option.
Add one more test on grpahics conversion.
Diffstat (limited to 'src/engine/SCons/Tool/pdflatex.py')
-rw-r--r-- | src/engine/SCons/Tool/pdflatex.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/pdflatex.py b/src/engine/SCons/Tool/pdflatex.py index 6c37b46..81bdcd5 100644 --- a/src/engine/SCons/Tool/pdflatex.py +++ b/src/engine/SCons/Tool/pdflatex.py @@ -42,6 +42,8 @@ PDFLaTeXAction = None def PDFLaTeXAuxFunction(target = None, source= None, env=None): result = SCons.Tool.tex.InternalLaTeXAuxAction( PDFLaTeXAction, target, source, env ) + if result != 0: + print env['PDFLATEX']," returned an error, check the log file" return result PDFLaTeXAuxAction = None @@ -67,7 +69,7 @@ def generate(env): bld.add_emitter('.latex', SCons.Tool.tex.tex_pdf_emitter) env['PDFLATEX'] = 'pdflatex' - env['PDFLATEXFLAGS'] = SCons.Util.CLVar('-interaction=nonstopmode') + env['PDFLATEXFLAGS'] = SCons.Util.CLVar('-interaction=nonstopmode -recorder') env['PDFLATEXCOM'] = 'cd ${TARGET.dir} && $PDFLATEX $PDFLATEXFLAGS ${SOURCE.file}' env['LATEXRETRIES'] = 3 |