diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 72472228d6..6ca3fc1571 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -434,14 +434,9 @@ class Cleaner [f.bin, f.sbin, f.lib].each {|d| clean_dir d} - # you can read all of this stuff online nowadays, save the space - # info pages are pants, everyone agrees apart from Richard Stallman - # feel free to ask for build options though! http://bit.ly/Homebrew - unlink = Proc.new{ |path| path.unlink unless f.skip_clean? path rescue nil } - %w[doc docs info].each do |fn| - unlink.call(f.share+fn) - unlink.call(f.prefix+fn) - end + # info pages suck + info = f.share+'info' + info.rmtree if info.directory? and not f.skip_clean? info end private