From 3f61cb19a466f7c104235116a7ebadc033ab0888 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 10 Jul 2009 00:36:16 +0100 Subject: [PATCH] Make scripts executable by default Though maybe we should only do that if they were before? --- Library/Homebrew/brewkit.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index 0b99d97765..49f29369ce 100644 --- a/Library/Homebrew/brewkit.rb +++ b/Library/Homebrew/brewkit.rb @@ -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'