diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-10 11:13:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-10 11:13:58 +0000 |
commit | f95521702822e8bdbe10a03f2e796dab0370aeba (patch) | |
tree | ba006df502fa8b4ad89bd1253699215b7f831efb /ext | |
parent | 6f8bf830b44c9394a6afed4b02ecd4bc6b960342 (diff) | |
download | ruby-f95521702822e8bdbe10a03f2e796dab0370aeba.tar.gz |
* ext/extmk.rb: negate default of --without-ext if --with-ext is
given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/extmk.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 8734eae00f..ab2ae4f3ee 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -406,8 +406,12 @@ else proc {|c1| w.collect {|o| o.split(/,/)}.flatten.any?(&c1)} end } - withes ||= proc {false} - withouts ||= proc {true} + if withes + withouts ||= proc {true} + else + withes = proc {false} + withouts ||= withes + end cond = proc {|ext, *| cond1 = proc {|n| File.fnmatch(n, ext)} withes.call(cond1) or !withouts.call(cond1) |