summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool/pdftex.py
diff options
context:
space:
mode:
authorRobert Managan <managan1@llnl.gov>2008-09-04 22:30:55 (GMT)
committerRobert Managan <managan1@llnl.gov>2008-09-04 22:30:55 (GMT)
commit6fbb44b7d5934ee36244049bfea68d44de968a86 (patch)
treecd48d228098e677f5d25ebea2cd5b6cc9a2cc7ed /src/engine/SCons/Tool/pdftex.py
parent6a4d9df86030463c35d40e1a314721eb546fb84e (diff)
downloadSCons-6fbb44b7d5934ee36244049bfea68d44de968a86.zip
SCons-6fbb44b7d5934ee36244049bfea68d44de968a86.tar.gz
SCons-6fbb44b7d5934ee36244049bfea68d44de968a86.tar.bz2
Pass the results of the InternalLaTeXAuxAction back up the call chain
in teh various tex builders. This allows the user to interrupt the build which was not working before. It also allows configuration tests to work since now they can tell if there was failure in a test. The result from the internal MakeIndexAction and BibtexAction are checked as well and control returned if there was an error in one of those. This is to avoid repeatedly running commands until we hit the retry limit. I added no test for this simce I am unsure how to test for user interrupts. Also unclear how to test for how many times the internal actions were run during a test to see if it returns on teh first error!
Diffstat (limited to 'src/engine/SCons/Tool/pdftex.py')
-rw-r--r--src/engine/SCons/Tool/pdftex.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/engine/SCons/Tool/pdftex.py b/src/engine/SCons/Tool/pdftex.py
index 7bd57b0..75c6bc9 100644
--- a/src/engine/SCons/Tool/pdftex.py
+++ b/src/engine/SCons/Tool/pdftex.py
@@ -44,17 +44,18 @@ PDFTeXAction = None
PDFLaTeXAction = None
def PDFLaTeXAuxAction(target = None, source= None, env=None):
- SCons.Tool.tex.InternalLaTeXAuxAction( PDFLaTeXAction, target, source, env )
+ result = SCons.Tool.tex.InternalLaTeXAuxAction( PDFLaTeXAction, target, source, env )
+ return result
def PDFTeXLaTeXFunction(target = None, source= None, env=None):
"""A builder for TeX and LaTeX that scans the source file to
decide the "flavor" of the source and then executes the appropriate
program."""
if SCons.Tool.tex.is_LaTeX(source):
- PDFLaTeXAuxAction(target,source,env)
+ result = PDFLaTeXAuxAction(target,source,env)
else:
- PDFTeXAction(target,source,env)
- return 0
+ result = PDFTeXAction(target,source,env)
+ return result
PDFTeXLaTeXAction = None