[前][次][番号順一覧][スレッド一覧]

ruby-changes:37864

From: nobu <ko1@a...>
Date: Thu, 12 Mar 2015 09:12:51 +0900 (JST)
Subject: [ruby-changes:37864] nobu:r49945 (trunk): fake.rb.in: expand srcdir

nobu	2015-03-12 09:12:43 +0900 (Thu, 12 Mar 2015)

  New Revision: 49945

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49945

  Log:
    fake.rb.in: expand srcdir
    
    * template/fake.rb.in (top_srcdir): expand for the case @srcdir@
      is not a relative path.

  Modified files:
    trunk/template/fake.rb.in
Index: template/fake.rb.in
===================================================================
--- template/fake.rb.in	(revision 49944)
+++ template/fake.rb.in	(revision 49945)
@@ -22,7 +22,7 @@ class Object https://github.com/ruby/ruby/blob/trunk/template/fake.rb.in#L22
   RUBY_DESCRIPTION = "ruby #{RUBY_VERSION}#{patchlevel_str} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
 end
 builddir = File.dirname(__FILE__)
-top_srcdir = File.join(builddir, "@srcdir@")
+top_srcdir = File.expand_path("@srcdir@", builddir)
 $:.unshift(File.expand_path(builddir))
 fake = File.join(top_srcdir, "tool/fake.rb")
 eval(File.read(fake), nil, fake)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]