From 3fbbec0c39f5a166e3bd5016c6dfaf30c26bb498 Mon Sep 17 00:00:00 2001 From: eban Date: Tue, 29 Jul 2003 10:24:28 +0000 Subject: * lib/fileutils.rb (install): support preserve timestamp. * instruby.rb (install): use FileUtils::install preserve mode. * lib/un.rb: new. % ruby -run -e cp -- -p foo bar * lib/mkmf.rb: use un.rb instead of ftools.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- instruby.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'instruby.rb') diff --git a/instruby.rb b/instruby.rb index 3b139941fe..f005597ae2 100644 --- a/instruby.rb +++ b/instruby.rb @@ -55,12 +55,8 @@ include FileUtils::NoWrite if $dryrun @fileutils_label = '' def install(src, dest, options = {}) + options[:preserve] = true super - return if options[:noop] - fu_each_src_dest(src, dest) do |s, d| - st = File.stat(s) - File.utime(st.atime, st.mtime, d) - end end $made_dirs = {} -- cgit v1.2.3