aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2010-03-10 12:18:24 +0000
committerMax Howell2010-03-10 12:20:21 +0000
commitc29219e27c0063275c83496b8ecdac9ba4409377 (patch)
treed0a324c4876a2a4e7511e86adb420c6b3362b30d /Library
parent9f443853fa23fc5caf164700dd4e31825ff89970 (diff)
downloadbrew-c29219e27c0063275c83496b8ecdac9ba4409377.tar.bz2
Actually remove info pages in skip step
Lets stop removing docs and doc (though moving share/docs to share/doc would make sense) as I was being lame when I decided nobody ever needs local documentation. I still wouldn't use it (the INTRAWEBS is pretty good nowadays), but I admit, for some people, it's essential.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index 72472228d..6ca3fc157 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -434,14 +434,9 @@ class Cleaner
[f.bin, f.sbin, f.lib].each {|d| clean_dir d}
- # you can read all of this stuff online nowadays, save the space
- # info pages are pants, everyone agrees apart from Richard Stallman
- # feel free to ask for build options though! http://bit.ly/Homebrew
- unlink = Proc.new{ |path| path.unlink unless f.skip_clean? path rescue nil }
- %w[doc docs info].each do |fn|
- unlink.call(f.share+fn)
- unlink.call(f.prefix+fn)
- end
+ # info pages suck
+ info = f.share+'info'
+ info.rmtree if info.directory? and not f.skip_clean? info
end
private