diff options
| author | Adam Vandenberg | 2011-06-05 12:29:36 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-05 12:36:12 -0700 |
| commit | 0b0166b2e84021a92f46f94a1bbf2c1319ca205a (patch) | |
| tree | 04bca65de5c525889ba6d7fe9313e56a97a10b07 | |
| parent | 1a5cf082d704418d8f49908d1416699b82102c91 (diff) | |
| download | brew-0b0166b2e84021a92f46f94a1bbf2c1319ca205a.tar.bz2 | |
Also link apps found in libexec
| -rwxr-xr-x | Library/Contributions/examples/brew-linkapps.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-linkapps.rb b/Library/Contributions/examples/brew-linkapps.rb index 5549cd774..4f6f03efd 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 |
