mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
f2d96f1b3d
--HG-- extra : rebase_source : 3ce54c05f07236d49469b66c695bfac3ccef06af
21 lines
540 B
Python
21 lines
540 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_', 'dll_p', '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())
|