mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fake.rb.in: remove duplications
* template/fake.rb.in (builddir): remove duplications git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2b648fb7c4
commit
1fcc1762ad
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 9 23:46:42 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* template/fake.rb.in (builddir): remove duplications
|
||||
|
||||
|
||||
Thu Aug 9 20:03:11 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||
|
||||
* test/ruby/test_file_exhaustive.rb
|
||||
|
|
|
@ -22,10 +22,11 @@ if RUBY_PLATFORM =~ /mswin|bccwin|mingw/
|
|||
end
|
||||
end
|
||||
|
||||
$:.unshift(File.expand_path("..", __FILE__))
|
||||
builddir = File.expand_path(File.dirname(__FILE__))
|
||||
$:.unshift(builddir)
|
||||
posthook = proc do
|
||||
mkconfig = RbConfig::MAKEFILE_CONFIG
|
||||
extout = File.expand_path(mkconfig["EXTOUT"], mkconfig["builddir"])
|
||||
extout = File.expand_path(mkconfig["EXTOUT"], builddir)
|
||||
$arch_hdrdir = "#{extout}/include/$(arch)"
|
||||
$ruby = baseruby
|
||||
untrace_var(:$ruby, posthook)
|
||||
|
@ -34,7 +35,6 @@ prehook = proc do |extmk|
|
|||
unless extmk
|
||||
config = RbConfig::CONFIG
|
||||
mkconfig = RbConfig::MAKEFILE_CONFIG
|
||||
builddir = File.expand_path(File.dirname(__FILE__))
|
||||
mkconfig["top_srcdir"] = $top_srcdir = File.expand_path("@top_srcdir@", builddir)
|
||||
mkconfig["rubyhdrdir"] = "$(top_srcdir)/include"
|
||||
mkconfig["builddir"] = config["builddir"] = builddir
|
||||
|
|
Loading…
Add table
Reference in a new issue