diff options
| author | Max Howell | 2009-08-08 14:02:22 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-10 18:11:23 +0100 |
| commit | 2f8aafd8a20d765c18797eff79e4315f0a2bae6a (patch) | |
| tree | d0937f50601ce4a3bbde930c2f9a95cc568613d8 /Library | |
| parent | 7c791de39dd063b337b8fce35d58e989669afb2f (diff) | |
| download | homebrew-2f8aafd8a20d765c18797eff79e4315f0a2bae6a.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.rb | 4 |
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 |
