ruby-changes:38198
From: nobu <ko1@a...>
Date: Mon, 13 Apr 2015 08:33:05 +0900 (JST)
Subject: [ruby-changes:38198] nobu:r50279 (trunk): fake.rb.in: expand builddir first
nobu 2015-04-13 08:25:21 +0900 (Mon, 13 Apr 2015) New Revision: 50279 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50279 Log: fake.rb.in: expand builddir first * template/fake.rb.in (builddir): expand __FILE__ first which may contain symblic links. Modified files: trunk/template/fake.rb.in Index: template/fake.rb.in =================================================================== --- template/fake.rb.in (revision 50278) +++ template/fake.rb.in (revision 50279) @@ -21,9 +21,9 @@ class Object https://github.com/ruby/ruby/blob/trunk/template/fake.rb.in#L21 patchlevel_str = RUBY_PATCHLEVEL == -1 ? "dev" : "p#{RUBY_PATCHLEVEL}" RUBY_DESCRIPTION = "ruby #{RUBY_VERSION}#{patchlevel_str} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]" end -builddir = File.dirname(__FILE__) +builddir = File.dirname(File.expand_path(__FILE__)) top_srcdir = File.expand_path("@srcdir@", builddir) -$:.unshift(File.expand_path(builddir)) +$:.unshift(builddir) fake = File.join(top_srcdir, "tool/fake.rb") eval(File.read(fake), nil, fake) ENV["RUBYOPT"] = ["-r#{__FILE__}", ENV["RUBYOPT"]].compact.join(" ") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/