summaryrefslogtreecommitdiffstats
path: root/instruby.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-29 10:24:28 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-29 10:24:28 +0000
commit76d7c01ddea6d7c3e6c16b3ccd1200a17e73261d (patch)
treed94e9e48b07fcc6c82e908093d9c515e9cb9bf01 /instruby.rb
parent77635a1b7b1c12fc4740198ff385014e2334eba4 (diff)
downloadruby-76d7c01ddea6d7c3e6c16b3ccd1200a17e73261d.tar.gz
ruby-76d7c01ddea6d7c3e6c16b3ccd1200a17e73261d.tar.xz
ruby-76d7c01ddea6d7c3e6c16b3ccd1200a17e73261d.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@4210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rw-r--r--instruby.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/instruby.rb b/instruby.rb
index 3b139941f..f005597ae 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 = {}