aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-10 11:16:03 +0100
committerMax Howell2009-08-10 18:11:23 +0100
commita6577e5117e44b0119f533d6ba21742e5b5717c0 (patch)
tree47043c3cd3f5d5c7bfba9b79c2de5505980626d1 /Library
parenta84bf77515785f6b7195c43927bf897e5f33aae0 (diff)
downloadbrew-a6577e5117e44b0119f533d6ba21742e5b5717c0.tar.bz2
When safe, correct common install issues
Eg. man can be moved into share without consequences
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index b4ff93b1c..a858a0bf2 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