Changeset: 6c23c7dc7084 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6c23c7dc7084
Modified Files:
NT/wincompile.py
Branch: default
Log Message:
Added verbose option to wincompile.py.
The option can only be set by changing the source.
diffs (22 lines):
diff -r 831b82d02b4f -r 6c23c7dc7084 NT/wincompile.py
--- a/NT/wincompile.py Sun Jan 16 19:54:34 2011 +0100
+++ b/NT/wincompile.py Mon Jan 17 16:28:45 2011 +0100
@@ -16,6 +16,8 @@
# the files from those libraries that contain functions that happen to
# be referenced somewhere.
+verbose = False
+
# the splitcommand function is a straight copy of the same function in
# ../../testing/src/process.py.
def splitcommand(cmd):
@@ -67,6 +69,9 @@
argv = process(sys.argv[1:])
+if verbose:
+ sys.stdout.write('EXECUTE: %s\n' % ' '.join(argv))
+ sys.stdout.flush()
p = subprocess.Popen(argv, shell = False, stdout = subprocess.PIPE, stderr =
subprocess.PIPE)
out, err = p.communicate()
sys.stdout.write(out.replace('\r\n', '\n'))
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list