diff options
Diffstat (limited to 'src/engine/SCons/Tool/tex.py')
-rw-r--r-- | src/engine/SCons/Tool/tex.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/tex.py b/src/engine/SCons/Tool/tex.py index b9a8dea..d1a8b09 100644 --- a/src/engine/SCons/Tool/tex.py +++ b/src/engine/SCons/Tool/tex.py @@ -78,11 +78,12 @@ def TeXLaTeXAction(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.""" - LaTeXFile = False + LaTeXFile = None for src in source: content = src.get_contents() if re.search("\\\\document(style|class)",content): - LaTeXFile = True + LaTeXFile = 1 + break if LaTeXFile: LaTeXAuxAction(target,source,env) else: |