From: Chris Hanson Date: Tue, 7 Feb 1995 23:56:33 +0000 (+0000) Subject: Add code to preserve modification time stamp on copied files. X-Git-Tag: 20090517-FFI~6665 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=e3c4d1e4c63e3eedceed3e383c3dbff7743c49c2;p=mit-scheme.git Add code to preserve modification time stamp on copied files. --- diff --git a/v7/src/runtime/sfile.scm b/v7/src/runtime/sfile.scm index b7607f4b2..48abe2cfd 100644 --- a/v7/src/runtime/sfile.scm +++ b/v7/src/runtime/sfile.scm @@ -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)