summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-09-22 19:32:13 (GMT)
committerSteven Knight <knight@baldmt.com>2003-09-22 19:32:13 (GMT)
commit16c04783a34ffe9762a39a3fd171dcc4bcccfa80 (patch)
treebdbfc4275590ed5a54651ea912262eb72057906b /src/engine/SCons/Tool
parent7d5aa5669b5208be12b1a75e7a2b2d290493508e (diff)
downloadSCons-16c04783a34ffe9762a39a3fd171dcc4bcccfa80.zip
SCons-16c04783a34ffe9762a39a3fd171dcc4bcccfa80.tar.gz
SCons-16c04783a34ffe9762a39a3fd171dcc4bcccfa80.tar.bz2
Pre-Python 2 portability fix in new tex.py tool. Portability fix in EnvironmentTests.py.
Diffstat (limited to 'src/engine/SCons/Tool')
-rw-r--r--src/engine/SCons/Tool/tex.py5
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: