aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-07-10 00:36:16 +0100
committerMax Howell2009-07-10 00:36:16 +0100
commit3f61cb19a466f7c104235116a7ebadc033ab0888 (patch)
treee4af2aecf3dbf9a66759d8100218cf88bf2e324a /Library
parentdba2a53216c515700c42766514d5da639dd928d7 (diff)
downloadbrew-3f61cb19a466f7c104235116a7ebadc033ab0888.tar.bz2
Make scripts executable by default
Though maybe we should only do that if they were before?
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brewkit.rb7
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'