From 400d2d9d0394dda6f201eb0c92c056adfe5ca4db Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 23 Nov 2012 13:49:14 +0000 Subject: [PATCH] mkrunnable.rb: static-linked-ext * tool/mkrunnable.rb: make archdir for static-linked-ext. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/mkrunnable.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tool/mkrunnable.rb b/tool/mkrunnable.rb index c0222b87ac..847cbef789 100755 --- a/tool/mkrunnable.rb +++ b/tool/mkrunnable.rb @@ -1,4 +1,5 @@ #!./miniruby +# -*- coding: us-ascii -*- require 'mkmf' @@ -44,7 +45,8 @@ version = config["ruby_version"] arch = config["arch"] bindir = File.basename(config["bindir"]) libdir = File.basename(config["libdir"]) -[bindir, libdir].each do |dir| +archdir = File.join(extout, arch) +[bindir, libdir, archdir].each do |dir| File.directory?(dir) or mkdir_p(dir) end @@ -74,9 +76,9 @@ else end end if cur - ln_safe(File.join("..", cur, "rbconfig.rb"), File.join(extout, arch, "rbconfig.rb")) + ln_safe(File.join("..", cur, "rbconfig.rb"), File.join(archdir, "rbconfig.rb")) else - ln_safe(File.expand_path("rbconfig.rb"), File.join(extout, arch, "rbconfig.rb")) + ln_safe(File.expand_path("rbconfig.rb"), File.join(archdir, "rbconfig.rb")) end ln_dir_safe("common", File.join(extout, version)) ln_dir_safe(File.join("..", arch), File.join(extout, "common", arch))