parent
a27eda9df2
commit
1c28de6538
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user