]> thyrsus.com Git - sccs2rcs.git/commitdiff
This version looks like it might work.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 12:34:35 +0000 (12:34 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 12:34:35 +0000 (12:34 +0000)
sccs2rcs

index ac7d9f926bf76a1f3f0611312759832c569f920c..586fde1b30bf95057a9215ebe0874e49a2eab1be 100755 (executable)
--- 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