clean deep into lib and bin dirs
This commit is contained in:
parent
71a6287409
commit
21a935bb02
@ -212,11 +212,11 @@ public
|
||||
end
|
||||
|
||||
def clean
|
||||
prefix.find do |path|
|
||||
if path==prefix #rubysucks
|
||||
[bin,lib].each {|path| path.find do |path|
|
||||
if not path.file?
|
||||
next
|
||||
elsif path.file?
|
||||
if path.extname == '.la'
|
||||
elsif path.extname == '.la'
|
||||
# .la files are stupid
|
||||
path.unlink
|
||||
else
|
||||
fo=`file -h #{path}`
|
||||
@ -228,10 +228,7 @@ public
|
||||
`strip #{args} #{path}`
|
||||
end
|
||||
end
|
||||
elsif path.directory? and path!=prefix+'bin' and path!=prefix+'lib'
|
||||
Find.prune
|
||||
end
|
||||
end
|
||||
end}
|
||||
end
|
||||
|
||||
protected
|
||||
|
Loading…
x
Reference in New Issue
Block a user