mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/fileutils.rb (install): should preserve timestamp only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b54ac875c2
commit
5e12815fb1
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Aug 5 17:58:57 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/fileutils.rb (install): should preserve timestamp only.
|
||||||
|
|
||||||
Tue Aug 5 15:47:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Aug 5 15:47:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_load): should preserve current source file/line.
|
* eval.c (rb_load): should preserve current source file/line.
|
||||||
|
|
|
@ -639,10 +639,10 @@ module FileUtils
|
||||||
|
|
||||||
fu_each_src_dest(src, dest) do |s,d|
|
fu_each_src_dest(src, dest) do |s,d|
|
||||||
unless FileTest.exist?(d) and compare_file(s,d)
|
unless FileTest.exist?(d) and compare_file(s,d)
|
||||||
fu_preserve_attr(options[:preserve], s, d) {
|
remove_file d, true
|
||||||
remove_file d, true
|
st = File.stat(s) if options[:preserve]
|
||||||
copy_file s, d
|
copy_file s, d
|
||||||
}
|
File.utime st.atime, st.mtime, d if options[:preserve]
|
||||||
File.chmod options[:mode], d if options[:mode]
|
File.chmod options[:mode], d if options[:mode]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -769,7 +769,7 @@ module FileUtils
|
||||||
'copy' => %w( preserve noop verbose ),
|
'copy' => %w( preserve noop verbose ),
|
||||||
'cp' => %w( preserve noop verbose ),
|
'cp' => %w( preserve noop verbose ),
|
||||||
'cp_r' => %w( preserve noop verbose ),
|
'cp_r' => %w( preserve noop verbose ),
|
||||||
'install' => %w( mode noop verbose ),
|
'install' => %w( preserve mode noop verbose ),
|
||||||
'link' => %w( force noop verbose ),
|
'link' => %w( force noop verbose ),
|
||||||
'ln' => %w( force noop verbose ),
|
'ln' => %w( force noop verbose ),
|
||||||
'ln_s' => %w( force noop verbose ),
|
'ln_s' => %w( force noop verbose ),
|
||||||
|
|
Loading…
Add table
Reference in a new issue