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

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
This commit is contained in:
nobu 2012-11-23 13:49:14 +00:00
parent 48df345894
commit 400d2d9d03

View file

@ -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))