mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
extmk.rb: refactor
* ext/extmk.rb: extract non-blank part without intermediate objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a7dd094791
commit
f4afd05260
1 changed files with 1 additions and 1 deletions
|
@ -627,7 +627,7 @@ void Init_ext(void)\n{\n#$extinit}
|
||||||
['SETUP', $setup],
|
['SETUP', $setup],
|
||||||
['EXTLIBS', $extlibs.join(' ')], ['EXTLDFLAGS', $extflags]
|
['EXTLIBS', $extlibs.join(' ')], ['EXTLDFLAGS', $extflags]
|
||||||
].map {|n, v|
|
].map {|n, v|
|
||||||
"#{n}=#{v}" if v and !(v = v.strip).empty?
|
"#{n}=#{v}" if v &&= v[/\S(?:.*\S)?/]
|
||||||
}.compact
|
}.compact
|
||||||
puts(*conf)
|
puts(*conf)
|
||||||
$stdout.flush
|
$stdout.flush
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue