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

* 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
parent 02efdb4845
commit ee1cfc11e3
2 changed files with 18 additions and 12 deletions

View file

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

View file

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