From: Eric S. Raymond Date: Fri, 13 Jul 2007 12:34:35 +0000 (+0000) Subject: This version looks like it might work. X-Git-Tag: 1.4~10 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=c29bc3f96c992d2d39a196aacbb67b63c19f18ba;p=sccs2rcs.git This version looks like it might work. --- diff --git a/sccs2rcs b/sccs2rcs index ac7d9f9..586fde1 100755 --- a/sccs2rcs +++ b/sccs2rcs @@ -104,7 +104,8 @@ def sccsfile(f): def progress(msg): global logtext - logtext += "sccs2rcs: " + msg + "\n" + msg = "sccs2rcs: " + msg + "\n" + logtext += msg print msg def get_output(command): @@ -132,7 +133,9 @@ Original unchanged history in ./SCCS. sys.exit(1) def warn(msg): - print >>sys.stderr, "sccs2rcs: warning,", msg + msg = "sccs2rcs: warning, " + logtext += msg + "\n" + print >>sys.stderr, msg def get_output_or_die(command): global logtext @@ -295,6 +298,6 @@ if __name__ == '__main__': if os.path.exists(sccsfile(filename)): os.remove(filename) os.system("co " + file) - print progress("done.") + progress("done.") # sccs2rcs ends here