From 9601b753fd1febc8ae071e313bc7f711af7e720e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 18 Sep 2012 00:45:24 +0200 Subject: [PATCH] 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 --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 213704107b..5ceaa9fe44 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