2008-02-06 15:06:50 -08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import os, sys
|
2009-05-11 12:54:39 -07:00
|
|
|
from subprocess import Popen, STDOUT, PIPE
|
2008-02-06 15:06:50 -08:00
|
|
|
|
|
|
|
if 'MAKEFLAGS' in os.environ:
|
|
|
|
del os.environ['MAKEFLAGS']
|
2009-05-11 12:54:39 -07:00
|
|
|
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())
|