Make scripts executable by default

Though maybe we should only do that if they were before?
This commit is contained in:
Max Howell 2009-07-10 00:36:16 +01:00
parent dba2a53216
commit 3f61cb19a4

View File

@ -245,10 +245,13 @@ public
fo=`file -h #{path}`
args=nil
chmod=0444
args='-SxX' if fo =~ /Mach-O dynamically linked shared library/
if fo =~ /Mach-O executable/ #defaults strip everything
if fo =~ /Mach-O dynamically linked shared library/
args='-SxX'
elsif fo =~ /Mach-O executable/ # defaults strip everything
args='' # still do the strip
chmod=0544
elsif fo =~ /script text executable/
chmod=0544
end
if args
puts "Stripping: #{path}" if ARGV.include? '--verbose'