1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mkmf.rb: modify RM macro.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2001-07-09 08:10:26 +00:00
parent 4d134d47d6
commit f1b3c51701
2 changed files with 5 additions and 3 deletions

View file

@ -2,6 +2,8 @@ Mon Jul 9 16:49:30 2001 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/extmk.rb.in: modify RM macro.
* lib/mkmf.rb: ditto.
Sun Jul 8 20:52:02 2001 Akinori MUSHA <knu@iDaemons.org>
* ruby.h: fix a wrong function name: rb_iglob() -> rb_globi().

View file

@ -53,8 +53,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
@ -469,7 +469,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"]}