From a6577e5117e44b0119f533d6ba21742e5b5717c0 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 10 Aug 2009 11:16:03 +0100 Subject: [PATCH] When safe, correct common install issues Eg. man can be moved into share without consequences --- Library/Homebrew/brew.h.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index b4ff93b1c7..a858a0bf28 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -189,11 +189,19 @@ end class Cleaner def initialize f @f=f + + # correct common issues + share=f.prefix+'share' + (f.prefix+'man').mv share rescue nil + [f.bin, f.lib].each {|d| clean_dir d} # you can read all of this shit online nowadays, save the space + # info pages are shit, everyone agrees apart from Richard Stallman (f.prefix+'share'+'doc').rmtree rescue nil (f.prefix+'share'+'info').rmtree rescue nil + (f.prefix+'doc').rmtree rescue nil + (f.prefix+'info').rmtree rescue nil end private