mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
ea4d41da0d
--HG-- extra : rebase_source : a4a468e05352c69e1e9cf1e1d2148f9f0ca13b63
21 lines
531 B
Python
21 lines
531 B
Python
#!/usr/bin/env python
|
|
|
|
import os, sys
|
|
from subprocess import Popen, STDOUT, PIPE
|
|
|
|
if 'MAKEFLAGS' in os.environ:
|
|
del os.environ['MAKEFLAGS']
|
|
proc = Popen(['nmake', 'dll_', 'mt'], stdout=PIPE, stderr=STDOUT,
|
|
cwd=sys.argv[1])
|
|
|
|
while True:
|
|
line = proc.stdout.readline()
|
|
if line == '':
|
|
break
|
|
line = line.rstrip()
|
|
# explicitly ignore this fatal-sounding non-fatal error
|
|
if line == "NMAKE : fatal error U1052: file 'makefile.sub' not found" or line == "Stop.":
|
|
continue
|
|
print line
|
|
sys.exit(proc.wait())
|