From 0b0166b2e84021a92f46f94a1bbf2c1319ca205a Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 5 Jun 2011 12:29:36 -0700 Subject: [PATCH] Also link apps found in libexec --- Library/Contributions/examples/brew-linkapps.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Contributions/examples/brew-linkapps.rb b/Library/Contributions/examples/brew-linkapps.rb index 5549cd774b..4f6f03efdd 100755 --- a/Library/Contributions/examples/brew-linkapps.rb +++ b/Library/Contributions/examples/brew-linkapps.rb @@ -5,6 +5,7 @@ HOME_APPS = File.expand_path("~/Applications") unless File.exist? HOME_APPS opoo "#{HOME_APPS} does not exist, stopping." + puts "Run `mkdir ~/Applications` first." exit 1 end @@ -13,7 +14,7 @@ HOMEBREW_CELLAR.subdirs.each do |keg| name = keg.basename.to_s if ((f = Formula.factory(name)).installed? rescue false) - Dir["#{f.installed_prefix}/*.app"].each do |p| + Dir["#{f.installed_prefix}/*.app", "#{f.installed_prefix}/libexec/*.app"].each do |p| puts "Linking #{p}" appname = File.basename(p) target = HOME_APPS+"/"+appname