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

ruby-changes:39932

From: nobu <ko1@a...>
Date: Sun, 4 Oct 2015 10:25:50 +0900 (JST)
Subject: [ruby-changes:39932] nobu:r52013 (trunk): runruby.rb: fallback to ruby

nobu	2015-10-04 10:25:42 +0900 (Sun, 04 Oct 2015)

  New Revision: 52013

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

  Log:
    runruby.rb: fallback to ruby
    
    * tool/runruby.rb: use ruby-runner only when exists and fallback
      to ruby itself.

  Modified files:
    trunk/tool/runruby.rb
Index: tool/runruby.rb
===================================================================
--- tool/runruby.rb	(revision 52012)
+++ tool/runruby.rb	(revision 52013)
@@ -66,7 +66,9 @@ config["bindir"] = abs_archdir https://github.com/ruby/ruby/blob/trunk/tool/runruby.rb#L66
 
 env = {}
 
-env["RUBY"] = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}")
+runner = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}")
+runner = File.expand_path(ruby) unless File.exist?(runner)
+env["RUBY"] = runner
 env["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR)
 
 if e = ENV["RUBYLIB"]

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

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