1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2008-06-10 11:13:58 +00:00
parent 6f8bf830b4
commit f955217028
2 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,7 @@
Tue Jun 10 18:12:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
Tue Jun 10 20:13:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb: negate default of --without-ext if --with-ext is
given.
* ext/extmk.rb: negate default of --without-ext.

View file

@ -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)