summaryrefslogtreecommitdiffstats
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-10 11:13:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-10 11:13:58 +0000
commit93fd00b5ff877fbc2ceea7d8ca0c9fac8875c124 (patch)
treeba006df502fa8b4ad89bd1253699215b7f831efb /ext/extmk.rb
parent12c0aeadd08b7612527e9b7b7fc79d01eafcc25c (diff)
downloadruby-93fd00b5ff877fbc2ceea7d8ca0c9fac8875c124.tar.gz
ruby-93fd00b5ff877fbc2ceea7d8ca0c9fac8875c124.tar.xz
ruby-93fd00b5ff877fbc2ceea7d8ca0c9fac8875c124.zip
* ext/extmk.rb: negate default of --without-ext if --with-ext is
given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r--ext/extmk.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 8734eae00..ab2ae4f3e 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)