mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/ftools.rb (syscopy): chmod destination file only if
it does not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e9d89f20a9
commit
075169f071
3 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon May 7 15:45:48 2001 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* lib/ftools.rb (syscopy): chmod destination file only if
|
||||
it does not exist.
|
||||
|
||||
Thu May 3 03:15:06 2001 SHIROYAMA Takayuki <psi@fortune.nest.or.jp>
|
||||
|
||||
* configure.in: get --enable-shared to work on MacOS X.
|
||||
|
|
|
@ -26,6 +26,7 @@ class << File
|
|||
|
||||
fmode = stat(from).mode
|
||||
tpath = to
|
||||
not_exist = !exist?(tpath)
|
||||
|
||||
from = open(from, "r")
|
||||
from.binmode
|
||||
|
@ -50,7 +51,7 @@ class << File
|
|||
to.close
|
||||
from.close
|
||||
end
|
||||
chmod(fmode, tpath)
|
||||
chmod(fmode, tpath) if not_exist
|
||||
ret
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#define RUBY_VERSION "1.7.0"
|
||||
#define RUBY_RELEASE_DATE "2001-05-02"
|
||||
#define RUBY_RELEASE_DATE "2001-05-07"
|
||||
#define RUBY_VERSION_CODE 170
|
||||
#define RUBY_RELEASE_CODE 20010502
|
||||
#define RUBY_RELEASE_CODE 20010507
|
||||
|
|
Loading…
Reference in a new issue