print the latex command executed

This commit is contained in:
Thomas Nagy 2014-10-23 22:22:18 +02:00
parent 995c8a231d
commit 86b25fa523
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 4 additions and 1 deletions

View File

@ -114,6 +114,7 @@ class tex(Task.Task):
:rtype: int
"""
bld = self.generator.bld
Logs.info('runner: %r' % cmd)
try:
if not kw.get('cwd', None):
kw['cwd'] = bld.cwd
@ -467,11 +468,13 @@ def apply_tex(self):
task.dep_nodes.append(n)
# texinputs is a nasty beast
if hasattr(self, 'texinputs'):
if hasattr(self, 'texinputs_nodes'):
task.texinputs_nodes = self.texinputs_nodes
else:
task.texinputs_nodes = [node.parent, node.parent.get_bld(), self.path, self.path.get_bld()]
lst = os.environ.get('TEXINPUTS', '')
if self.env.TEXINPUTS:
lst += os.pathsep + self.env.TEXINPUTS
if lst:
lst = lst.split(os.pathsep)
for x in lst: