Skip to content
Snippets Groups Projects
Commit 0cb915e3 authored by Max Howell's avatar Max Howell
Browse files

Allow formula to skip docs removal

parent bf07b966
No related branches found
Tags 2.2.0
No related merge requests found
......@@ -383,11 +383,11 @@ class Cleaner
# 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
(f.prefix+'share'+'doc').rmtree rescue nil
(f.prefix+'share'+'info').rmtree rescue nil
(f.prefix+'doc').rmtree rescue nil
(f.prefix+'docs').rmtree rescue nil
(f.prefix+'info').rmtree rescue nil
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
end
private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment