* template/fake.rb.in: no need for hook if extmk.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-04-24 07:20:28 +00:00
Родитель 02efdb4845
Коммит ee1cfc11e3
2 изменённых файлов: 18 добавлений и 12 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Sat Apr 24 16:20:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* template/fake.rb.in: no need for hook if extmk.
Sat Apr 24 14:40:20 2010 Tanaka Akira <akr@fsij.org>
* io.c: raise IOError when byte oriented operations occur with

Просмотреть файл

@ -18,17 +18,6 @@ if RUBY_PLATFORM =~ /mswin|bccwin|mingw/
end
$:.unshift(File.expand_path("..", __FILE__))
prehook = proc do
config = RbConfig::CONFIG
mkconfig = RbConfig::MAKEFILE_CONFIG
mkconfig["top_srcdir"] = $top_srcdir = File.expand_path("@abs_top_srcdir@")
mkconfig["rubyhdrdir"] = "$(top_srcdir)/include"
mkconfig["builddir"] = config["builddir"] = File.expand_path(File.dirname(__FILE__))
config["rubyhdrdir"] = File.join(mkconfig["top_srcdir"], "include")
mkconfig["libdir"] = config["libdir"] = mkconfig["topdir"]
untrace_var(:$extmk, prehook)
end
trace_var(:$extmk, prehook)
posthook = proc do
config = RbConfig::CONFIG
mkconfig = RbConfig::MAKEFILE_CONFIG
@ -37,4 +26,17 @@ posthook = proc do
$ruby = baseruby
untrace_var(:$ruby, posthook)
end
trace_var(:$ruby, posthook)
prehook = proc do |extmk|
unless extmk
config = RbConfig::CONFIG
mkconfig = RbConfig::MAKEFILE_CONFIG
mkconfig["top_srcdir"] = $top_srcdir = File.expand_path("@abs_top_srcdir@")
mkconfig["rubyhdrdir"] = "$(top_srcdir)/include"
mkconfig["builddir"] = config["builddir"] = File.expand_path(File.dirname(__FILE__))
config["rubyhdrdir"] = File.join(mkconfig["top_srcdir"], "include")
mkconfig["libdir"] = config["libdir"] = mkconfig["topdir"]
trace_var(:$ruby, posthook)
end
untrace_var(:$extmk, prehook)
end
trace_var(:$extmk, prehook)