Use fullpaths to file and strip

Fixes Homebrew/homebrew#7353.
This commit is contained in:
Max Howell 2011-09-01 12:08:30 +01:00
parent a27eda9df2
commit 1c28de6538

View File

@ -30,7 +30,7 @@ class Cleaner
puts "strip #{path}" if ARGV.verbose? puts "strip #{path}" if ARGV.verbose?
path.chmod 0644 # so we can strip path.chmod 0644 # so we can strip
unless path.stat.nlink > 1 unless path.stat.nlink > 1
system "strip", *(args+path) system "/usr/bin/strip", *(args+path)
else else
path = path.to_s.gsub ' ', '\\ ' path = path.to_s.gsub ' ', '\\ '
@ -48,7 +48,7 @@ class Cleaner
def clean_file path def clean_file path
perms = 0444 perms = 0444
case `file -h '#{path}'` case `/usr/bin/file -h '#{path}'`
when /Mach-O dynamically linked shared library/ when /Mach-O dynamically linked shared library/
# Stripping libraries is causing no end of trouble. Lets just give up, # Stripping libraries is causing no end of trouble. Lets just give up,
# and try to do it manually in instances where it makes sense. # and try to do it manually in instances where it makes sense.