diff options
| author | Max Howell | 2009-05-23 18:15:58 +0100 |
|---|---|---|
| committer | Max Howell | 2009-05-23 18:21:35 +0100 |
| commit | d40718f4de90e527897f91061ecded86b6c93699 (patch) | |
| tree | 7d166f1feb80b1bed13b66b7b50096d505a20858 | |
| parent | dad6dbc6f78987c29a4332379a58d08e9c31ff42 (diff) | |
| download | brew-d40718f4de90e527897f91061ecded86b6c93699.tar.bz2 | |
Don't strip all symbols from dylibs
| -rw-r--r-- | Cellar/homebrew/brewkit.rb | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb index ff37662c8..65ac2fb4c 100644 --- a/Cellar/homebrew/brewkit.rb +++ b/Cellar/homebrew/brewkit.rb @@ -25,7 +25,8 @@ end def ohai title - puts "\033[0;34m==>\033[0;0;1m #{title} \033[0;0m" + n=`tput cols`.strip.to_i-4 + puts "\033[0;34m==>\033[0;0;1m #{title[0,n]}\033[0;0m" end @@ -114,9 +115,15 @@ class Formula prefix.find do |path| if path==prefix #rubysucks next - elsif path.file? and `file -h #{path}` =~ /Mach-O/ - puts "strip #{path}" if ARGV.include? '--verbose' - `strip #{path}` + elsif path.file? + fo=`file -h #{path}` + args=nil + args='-SxX' if fo =~ /Mach-O dynamically linked shared library/ + args='' if fo =~ /Mach-O executable/ #defaults strip everything + if args + puts "Stripping: #{path}" if ARGV.include? '--verbose' + `strip #{args} #{path}` + end elsif path.directory? and path!=prefix+'bin' and path!=prefix+'lib' Find.prune end |
