summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-17 02:32:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-17 02:32:07 +0000
commit7d7f1ef157f9b7ab4d5c661fd155e2160efd4419 (patch)
tree07a0b1609c18d3845040c3d43959b01af2b3c822 /ext
parent25a327ae76c2ca4079ab49d1484baac72cd36c39 (diff)
* ext/extmk.rb (extmake): should not force to remake Makefile when
installation and so on. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index bb50579c92..5f99c85ea9 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -25,8 +25,6 @@ srcdir = Config::CONFIG["srcdir"]
$:.replace [srcdir, srcdir+"/lib", "."]
require 'mkmf'
-require 'ftools'
-require 'shellwords'
require 'getopts'
$topdir = File.expand_path(".")
@@ -55,7 +53,7 @@ def extmake(target)
begin
dir = Dir.pwd
- File.mkpath target unless File.directory?(target)
+ FileUtils.mkpath target unless File.directory?(target)
Dir.chdir target
$target = target
$mdir = target
@@ -91,6 +89,8 @@ def extmake(target)
else
true
end
+ else
+ File.exist?(makefile)
end or open(makefile, "w") do |f|
f.print dummy_makefile($srcdir)
return true
@@ -214,7 +214,7 @@ for dir in ["ext", File::join($top_srcdir, "ext")]
end
end
-File::makedirs('ext')
+FileUtils::makedirs('ext')
Dir::chdir('ext')
ext_prefix = "#{$top_srcdir}/ext"