diff options
Diffstat (limited to 'Library')
| -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' |
