diff options
| author | Jack Nagel | 2013-11-21 14:50:35 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-21 17:13:49 -0600 |
| commit | d2a38180e65d2475143cd214e8a3f682f5aa7818 (patch) | |
| tree | 16d9c8be521149c87017718c125210cecc5633d4 /Library | |
| parent | 3c4ca0f416c00c7ccb5709d138cda3b0ecc5b6ac (diff) | |
| download | homebrew-d2a38180e65d2475143cd214e8a3f682f5aa7818.tar.bz2 | |
Use grep instead of select + match
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/ENV/4.3/cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index d13e387c6..9172d3cea 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -204,7 +204,7 @@ class Cmd end def cpath cpath = ENV['CMAKE_PREFIX_PATH'].split(':').map{|d| "#{d}/include" } + ENV['CMAKE_INCLUDE_PATH'].split(':') - opt = cpath.select{|prefix| prefix =~ %r{^#$brewfix/opt} } + opt = cpath.grep(%r{^#$brewfix/opt}) sys = cpath - opt [sys, opt] end |
