diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-09 08:00:24 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-09 08:00:24 +0000 |
commit | c3d324b7d63c0ca3eb45bc7cc057460a0d4d020a (patch) | |
tree | 605a7f5bada5a76c933965b3c25a09f749785713 /ext | |
parent | 987805d32c02f7aa7cd3568515c768f2ab68e8d7 (diff) |
* ext/extmk.rb.in: modify RM macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/extmk.rb.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 55b7978dc5..804803deeb 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -45,8 +45,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 @@ -468,7 +468,7 @@ TARGET = #{target} DLLIB = $(TARGET).#{$static ? $LIBEXT : "@DLEXT@"} RUBY = #{ruby_interpreter} -I$(topdir) -I$(hdrdir)/lib -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 = @EXEEXT@ |