diff options
| author | Jack Nagel | 2013-11-21 14:50:35 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-21 17:13:49 -0600 |
| commit | 8c613e618b6a2205981baa6017075a65ecc6c04e (patch) | |
| tree | e1347d72ff04b4f7419b7289c225b40556abe699 /Library | |
| parent | f89c8bbaf9e65e81a5575669db3bafddeccf1c8f (diff) | |
| download | brew-8c613e618b6a2205981baa6017075a65ecc6c04e.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 |
