mirror of https://gitlab.com/ita1024/waf.git
use the unbuffered output for latex commands
This commit is contained in:
parent
2c4d772e3d
commit
b6455df988
|
@ -92,6 +92,21 @@ class tex(Task.Task):
|
|||
Execute the program **makeindex**
|
||||
"""
|
||||
|
||||
def exec_command(self, cmd, **kw):
|
||||
"""
|
||||
Override :py:meth:`waflib.Task.Task.exec_command` to execute the command without buffering (latex may prompt for inputs)
|
||||
|
||||
:return: the return code
|
||||
:rtype: int
|
||||
"""
|
||||
bld = self.generator.bld
|
||||
try:
|
||||
if not kw.get('cwd', None):
|
||||
kw['cwd'] = bld.cwd
|
||||
except AttributeError:
|
||||
bld.cwd = kw['cwd'] = bld.variant_dir
|
||||
return Utils.subprocess.Popen(cmd, **kw).wait()
|
||||
|
||||
def scan_aux(self, node):
|
||||
"""
|
||||
A recursive regex-based scanner that finds included auxiliary files.
|
||||
|
|
Loading…
Reference in New Issue