1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fake.rb.in: duplicated RUBYOPT

* template/fake.rb.in: removed duplicated options in RUBYOPT.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-07-03 04:43:27 +00:00
parent 6e65c89d3d
commit b03c1d087b

View file

@ -42,4 +42,9 @@ srcdir = "<%=arg['srcdir']%>"
top_srcdir = File.realpath(srcdir, builddir)
fake = File.join(top_srcdir, "tool/fake.rb")
eval(File.read(fake), nil, fake)
ENV["RUBYOPT"] = ["-r#{__FILE__}", ENV["RUBYOPT"]].compact.join(" ")
ropt = "-r#{__FILE__}"
["RUBYOPT"].each do |flag|
opt = ENV[flag]
opt = opt ? ([ropt] | opt.split).join(" ") : ropt
ENV[flag] = opt
end