diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-21 14:07:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-21 14:07:21 +0000 |
commit | 2527936cfcbe042678883ee5a87bfb6984702deb (patch) | |
tree | ad47fcb9b6cc631c9cd94fee9593fa9914c305cd /template/fake.rb.in | |
parent | 6113a5add0a05eea33935fb9dd95a8c8e5c2755d (diff) | |
download | ruby-2527936cfcbe042678883ee5a87bfb6984702deb.tar.gz |
* template/fake.rb.in: get rid of embeding an absolute path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/fake.rb.in')
-rwxr-xr-x | template/fake.rb.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in index e47cb4d759..cdc999a821 100755 --- a/template/fake.rb.in +++ b/template/fake.rb.in @@ -30,9 +30,10 @@ prehook = proc do |extmk| unless extmk config = RbConfig::CONFIG mkconfig = RbConfig::MAKEFILE_CONFIG - mkconfig["top_srcdir"] = $top_srcdir = File.expand_path("@abs_top_srcdir@") + 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"] = File.expand_path(File.dirname(__FILE__)) + mkconfig["builddir"] = config["builddir"] = builddir config["rubyhdrdir"] = File.join(mkconfig["top_srcdir"], "include") mkconfig["libdir"] = config["libdir"] = mkconfig["topdir"] trace_var(:$ruby, posthook) |