diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-09 07:54:49 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-09 07:54:49 +0000 |
commit | 4d134d47d6d39e68ff8178f2726c0289b4b825f7 (patch) | |
tree | b56b7f9949965c63a33046d1574fb5c327984c63 /ext/extmk.rb.in | |
parent | e45f8f994337131f9329e0780a64aa75c3586a7f (diff) |
* ext/extmk.rb.in: modify RM macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb.in')
-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 a88a9ea7a3..941d9d5dab 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 @@ -472,7 +472,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@ |