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:
parent
6e65c89d3d
commit
b03c1d087b
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue