aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-25 07:56:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-25 07:56:03 +0000
commitf4afd05260398b9a3d58f0f266905179973d3285 (patch)
tree5ffc85a020b37e9a3d071650455ab26e278126a5
parenta7dd0947916d84e2179b164a64da644e755a4e90 (diff)
downloadruby-f4afd05260398b9a3d58f0f266905179973d3285.tar.gz
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
-rwxr-xr-xext/extmk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index d2832c5aa2..19ad057756 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -627,7 +627,7 @@ void Init_ext(void)\n{\n#$extinit}
['SETUP', $setup],
['EXTLIBS', $extlibs.join(' ')], ['EXTLDFLAGS', $extflags]
].map {|n, v|
- "#{n}=#{v}" if v and !(v = v.strip).empty?
+ "#{n}=#{v}" if v &&= v[/\S(?:.*\S)?/]
}.compact
puts(*conf)
$stdout.flush