зеркало из https://github.com/github/ruby.git
Fix template/fake.rb.in when external and internal encodings are set
* To be able to run spec/ruby/command_line/dash_encoding_spec.rb with the in-repo build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
cea7d04732
Коммит
5e9cd5208e
|
@ -41,10 +41,10 @@ builddir = File.dirname(File.expand_path(__FILE__))
|
|||
srcdir = "<%=arg['srcdir']%>"
|
||||
top_srcdir = File.realpath(srcdir, builddir)
|
||||
fake = File.join(top_srcdir, "tool/fake.rb")
|
||||
eval(File.read(fake), nil, fake)
|
||||
eval(File.binread(fake), nil, fake)
|
||||
ropt = "-r#{__FILE__}"
|
||||
["RUBYOPT"].each do |flag|
|
||||
opt = ENV[flag]
|
||||
opt = ENV[flag].b
|
||||
opt = opt ? ([ropt] | opt.split).join(" ") : ropt
|
||||
ENV[flag] = opt
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче