diff options
| author | Max Howell | 2009-07-10 00:36:16 +0100 |
|---|---|---|
| committer | Max Howell | 2009-07-10 00:36:16 +0100 |
| commit | 3f61cb19a466f7c104235116a7ebadc033ab0888 (patch) | |
| tree | e4af2aecf3dbf9a66759d8100218cf88bf2e324a | |
| parent | dba2a53216c515700c42766514d5da639dd928d7 (diff) | |
| download | brew-3f61cb19a466f7c104235116a7ebadc033ab0888.tar.bz2 | |
Make scripts executable by default
Though maybe we should only do that if they were before?
| -rw-r--r-- | Library/Homebrew/brewkit.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index 0b99d9776..49f29369c 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' |
