Exclude brew manpages from unbrewed.

This commit is contained in:
Max Howell 2011-07-29 16:57:32 +01:00
parent 1cfad8f502
commit 630c77a362

View File

@ -4,7 +4,7 @@ module Homebrew extend self
dirs = HOMEBREW_PREFIX.children.select{ |pn| pn.directory? }.map{ |pn| pn.basename.to_s } dirs = HOMEBREW_PREFIX.children.select{ |pn| pn.directory? }.map{ |pn| pn.basename.to_s }
dirs -= %w[Library Cellar .git] dirs -= %w[Library Cellar .git]
cd HOMEBREW_PREFIX cd HOMEBREW_PREFIX
exec 'find', *dirs + %w[-type f ( ! -iname .ds_store ! -iname brew )] exec 'find', *dirs + %w[-type f ( ! -iname .ds_store ! -iname brew ! -iname brew-man.1 ! -iname brew.1 )]
elsif ARGV.flag? '--versions' elsif ARGV.flag? '--versions'
if ARGV.named.empty? if ARGV.named.empty?
HOMEBREW_CELLAR.children.select{ |pn| pn.directory? } HOMEBREW_CELLAR.children.select{ |pn| pn.directory? }