diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-03 04:43:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-03 04:43:27 +0000 |
commit | 29d6f77fcd00384e86ce94dc643a16fa18f13b73 (patch) | |
tree | 75d49b1302b34411aa8fbedd017c8d7288b5fcf7 /template | |
parent | b538806643760c239e26e5bc499a0fa80eb46575 (diff) | |
download | ruby-29d6f77fcd00384e86ce94dc643a16fa18f13b73.tar.gz |
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
Diffstat (limited to 'template')
-rw-r--r-- | template/fake.rb.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in index 524f6c888d..542bc3c4ba 100644 --- a/template/fake.rb.in +++ b/template/fake.rb.in @@ -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 |