mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
mkconfig.rb: fix concatenated lines
* tool/mkconfig.rb: see if a variable is set before setting it to fix concatenated lines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
13b11810e2
commit
26aae7740f
1 changed files with 2 additions and 1 deletions
|
@ -113,6 +113,7 @@ File.foreach "config.status" do |line|
|
|||
end
|
||||
end
|
||||
end
|
||||
eq = win32 && vars[name] ? '<< "\n"' : '='
|
||||
vars[name] = val
|
||||
if name == "configure_args"
|
||||
val.gsub!(/ +(?!-)/, "=") if win32
|
||||
|
@ -131,7 +132,7 @@ File.foreach "config.status" do |line|
|
|||
val.sub!(/universal/, %q[#{arch && universal[/(?:\A|\s)#{Regexp.quote(arch)}=(\S+)/, 1] || '\&'}])
|
||||
end
|
||||
end
|
||||
v = " CONFIG[\"#{name}\"] #{win32 && vars[name] ? '<< "\n"' : '='} #{val}\n"
|
||||
v = " CONFIG[\"#{name}\"] #{eq} #{val}\n"
|
||||
if fast[name]
|
||||
v_fast << v
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue