diff options
| author | Mike McQuaid | 2015-04-20 19:00:56 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-20 19:01:08 +0100 |
| commit | 3b725112b4e5ee79614690a8b4619b80392738de (patch) | |
| tree | d26bdb8fb625d8696d796a095ed5d2981a475f1d /Library | |
| parent | 94cb7b3bae9654b79c39486a7d484eb3983cb806 (diff) | |
| download | homebrew-3b725112b4e5ee79614690a8b4619b80392738de.tar.bz2 | |
keg_fix_install_names: fixup plists.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg_fix_install_names.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index c0229497e..c3f618a4c 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -38,7 +38,7 @@ class Keg end end - files = pkgconfig_files | libtool_files | script_files + files = pkgconfig_files | libtool_files | script_files | plist_files files.group_by { |f| f.stat.ino }.each_value do |first, *rest| s = first.open("rb", &:read) @@ -198,4 +198,14 @@ class Keg end if lib.directory? libtool_files end + + def plist_files + plist_files = [] + + self.find do |pn| + next if pn.symlink? or pn.directory? or pn.extname != '.plist' + plist_files << pn + end + plist_files + end end |
