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

ruby-changes:42591

From: nobu <ko1@a...>
Date: Fri, 22 Apr 2016 05:41:44 +0900 (JST)
Subject: [ruby-changes:42591] nobu:r54665 (trunk): spec/default.mspec: reduce expand_path

nobu	2016-04-22 06:38:21 +0900 (Fri, 22 Apr 2016)

  New Revision: 54665

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

  Log:
    spec/default.mspec: reduce expand_path

  Modified files:
    trunk/spec/default.mspec
Index: spec/default.mspec
===================================================================
--- spec/default.mspec	(revision 54664)
+++ spec/default.mspec	(revision 54665)
@@ -9,15 +9,16 @@ class MSpecScript https://github.com/ruby/ruby/blob/trunk/spec/default.mspec#L9
       f.read[/^\s*srcdir\s*=\s*(.+)/i] and srcdir = $1
     }
   end
+  srcdir = File.expand_path(srcdir)
   config = RbConfig::CONFIG
 
   # The default implementation to run the specs.
   set :target, File.join(builddir, "miniruby#{config['exeext']}")
   set :prefix, File.expand_path('rubyspec', File.dirname(__FILE__))
   set :flags, %W[
-    -I#{File.expand_path srcdir}/lib
-    -I#{File.expand_path srcdir}
-    -I#{File.expand_path srcdir}/#{config['EXTOUT']}/common
-    #{File.expand_path srcdir}/tool/runruby.rb --archdir=#{Dir.pwd} --extout=#{config['EXTOUT']}
+    -I#{srcdir}/lib
+    -I#{srcdir}
+    -I#{srcdir}/#{config['EXTOUT']}/common
+    #{srcdir}/tool/runruby.rb --archdir=#{Dir.pwd} --extout=#{config['EXTOUT']}
   ]
 end

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

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