diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-09 08:10:26 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-09 08:10:26 +0000 |
commit | 170e1b8a002860c84cee61a4569dbde6663770ea (patch) | |
tree | 21f0fad719a25d1f82eac6b8a0c8205f2ca09d1d /lib | |
parent | c3d324b7d63c0ca3eb45bc7cc057460a0d4d020a (diff) |
* lib/mkmf.rb: modify RM macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 62863402f3..ef4ad7030f 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -48,8 +48,8 @@ def rm_f(*files) targets.concat Dir[file] end if not targets.empty? - File::chmod 0777, *targets - File::unlink *targets + File::chmod(0777, *targets) + File::unlink(*targets) end end @@ -465,7 +465,7 @@ TARGET = #{target} DLLIB = $(TARGET).#{CONFIG["DLEXT"]} RUBY = #{CONFIG["ruby_install_name"]} -RM = $(RUBY) -r ftools -e 'File::rm_f(*Dir[ARGV.join(" ")])' +RM = $(RUBY) -rftools -e 'File::rm_f(*ARGV.map{|x|Dir[x]}.flatten.uniq)' EXEEXT = #{CONFIG["EXEEXT"]} |