When safe, correct common install issues
Eg. man can be moved into share without consequences
This commit is contained in:
parent
a84bf77515
commit
a6577e5117
@ -189,11 +189,19 @@ end
|
|||||||
class Cleaner
|
class Cleaner
|
||||||
def initialize f
|
def initialize f
|
||||||
@f=f
|
@f=f
|
||||||
|
|
||||||
|
# correct common issues
|
||||||
|
share=f.prefix+'share'
|
||||||
|
(f.prefix+'man').mv share rescue nil
|
||||||
|
|
||||||
[f.bin, f.lib].each {|d| clean_dir d}
|
[f.bin, f.lib].each {|d| clean_dir d}
|
||||||
|
|
||||||
# you can read all of this shit online nowadays, save the space
|
# you can read all of this shit online nowadays, save the space
|
||||||
|
# info pages are shit, everyone agrees apart from Richard Stallman
|
||||||
(f.prefix+'share'+'doc').rmtree rescue nil
|
(f.prefix+'share'+'doc').rmtree rescue nil
|
||||||
(f.prefix+'share'+'info').rmtree rescue nil
|
(f.prefix+'share'+'info').rmtree rescue nil
|
||||||
|
(f.prefix+'doc').rmtree rescue nil
|
||||||
|
(f.prefix+'info').rmtree rescue nil
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user