From 2f8aafd8a20d765c18797eff79e4315f0a2bae6a Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 8 Aug 2009 14:02:22 +0100 Subject: Delete installed documentation after install Documentation is all online nowadays, and is more current there. Documentation often takes up more space than the rest of the package. Package listings are now more relevent. We'll make it optional as soon as one person complains. --- Library/Homebrew/brew.h.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 3dee3ec2d..b4ff93b1c 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -190,6 +190,10 @@ class Cleaner def initialize f @f=f [f.bin, f.lib].each {|d| clean_dir d} + + # you can read all of this shit online nowadays, save the space + (f.prefix+'share'+'doc').rmtree rescue nil + (f.prefix+'share'+'info').rmtree rescue nil end private -- cgit v1.2.3