aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJason A. Donenfeld2012-09-18 00:45:24 +0200
committerAdam Vandenberg2012-09-30 10:54:29 -0700
commit9601b753fd1febc8ae071e313bc7f711af7e720e (patch)
tree7c61e533130a7cdb4c04d12f688e4e4d9f39dee5 /Library
parent1027093eae61228336981ef2cf45ca90088d2ed0 (diff)
downloadbrew-9601b753fd1febc8ae071e313bc7f711af7e720e.tar.bz2
Add .sh to list of valid library extenions.
As discussed with mistym, it's not only compiled code that goes in /usr/lib, but any types of libraries. As such, .pm was added to the valid extensions list a while back. Unfortunately, .sh was not added, even though configuration includes and platform function library shell files are often put in /usr/lib as shellscript libraries. This patch adds .sh to the list of valid library extensions. Closes Homebrew/homebrew#14993. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 213704107..5ceaa9fe4 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -383,7 +383,7 @@ class FormulaInstaller
return unless f.lib.directory?
valid_extensions = %w(.a .dylib .framework .jnilib .la .o .so
- .jar .prl .pm)
+ .jar .prl .pm .sh)
non_libraries = f.lib.children.select do |g|
next if g.directory?
not valid_extensions.include? g.extname