clean deep into lib and bin dirs

This commit is contained in:
Max Howell 2009-06-08 11:44:04 +01:00
parent 71a6287409
commit 21a935bb02

View File

@ -212,11 +212,11 @@ public
end end
def clean def clean
prefix.find do |path| [bin,lib].each {|path| path.find do |path|
if path==prefix #rubysucks if not path.file?
next next
elsif path.file? elsif path.extname == '.la'
if path.extname == '.la' # .la files are stupid
path.unlink path.unlink
else else
fo=`file -h #{path}` fo=`file -h #{path}`
@ -228,10 +228,7 @@ public
`strip #{args} #{path}` `strip #{args} #{path}`
end end
end end
elsif path.directory? and path!=prefix+'bin' and path!=prefix+'lib' end}
Find.prune
end
end
end end
protected protected