summaryrefslogtreecommitdiff
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
commit3fbbec0c39f5a166e3bd5016c6dfaf30c26bb498 (patch)
treed94e9e48b07fcc6c82e908093d9c515e9cb9bf01 /instruby.rb
parent23301726b08691c0f2706ad9d340da62a0902cc6 (diff)
* 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
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 3b13994..f005597 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 = {}