summaryrefslogtreecommitdiff
path: root/ext/extmk.rb.in
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-22 07:39:02 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-22 07:39:02 +0000
commitf534b398a5c90be4ad68c40a0e4fe37151a2c7d1 (patch)
tree234c70d2141b2337dfdc619b165a30ee5e7590fa /ext/extmk.rb.in
parent2c8151010ea62e4c274798e993e77bcbb3f2d386 (diff)
* ext/extmk.rb.in: replace mkdir with mkpath to compile racc/cparse.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r--ext/extmk.rb.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index dd7cabf..7e1a1b2 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -40,6 +40,7 @@ $:.replace [$topdir, $top_srcdir, $top_srcdir+"/lib", "."]
require 'rbconfig.rb'
require 'find'
+require 'ftools'
def rm_f(*files)
targets = []
@@ -623,7 +624,7 @@ def extmake(target)
begin
dir = Dir.pwd
- Dir.mkdir target unless File.directory?(target)
+ File.mkpath target unless File.directory?(target)
Dir.chdir target
$target = target
$mdir = target