blob: 199ab38cda85e04fcabdbce53d8cb902ac5c30e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/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())
|