aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-08 14:02:22 +0100
committerMax Howell2009-08-10 18:11:23 +0100
commita84bf77515785f6b7195c43927bf897e5f33aae0 (patch)
tree1946afdeb0a47d9d7f1d5edcd4882c47f655da21 /Library
parent6dbdc9ab0c5c87d94569bb418c4838edceff09b7 (diff)
downloadbrew-a84bf77515785f6b7195c43927bf897e5f33aae0.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb4
1 files changed, 4 insertions, 0 deletions
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