Add code to preserve modification time stamp on copied files.
authorChris Hanson <org/chris-hanson/cph>
Tue, 7 Feb 1995 23:56:33 +0000 (23:56 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 7 Feb 1995 23:56:33 +0000 (23:56 +0000)
v7/src/runtime/sfile.scm

index b7607f4b2bebe9a45ea017390302afdb0698a3a5..48abe2cfdf9790524a105599b52b588768bd608b 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Id: sfile.scm,v 14.15 1994/12/19 21:06:39 cph Exp $
+$Id: sfile.scm,v 14.16 1995/02/07 23:56:33 cph Exp $
 
-Copyright (c) 1988-94 Massachusetts Institute of Technology
+Copyright (c) 1988-95 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -102,6 +102,9 @@ MIT in each case. |#
        (lambda ()
         (if output-channel (channel-close output-channel))
         (if input-channel (channel-close input-channel)))))
+    (set-file-times! output-filename
+                    #f
+                    (file-modification-time input-filename))
     (set-file-modes! output-filename (file-modes input-filename))))
 
 (define (file-eq? x y)