From 57e499c21abc30440c7196375cd0abf7daa20d03 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sat, 12 Jun 2010 22:08:03 -0500 Subject: only jruby bin/ should be linked to the main tree Signed-off-by: Adam Vandenberg --- Library/Formula/jruby.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/jruby.rb b/Library/Formula/jruby.rb index 2eeecda49..0b70757e2 100644 --- a/Library/Formula/jruby.rb +++ b/Library/Formula/jruby.rb @@ -19,11 +19,16 @@ class Jruby < Formula # Only keep the OS X native libraries Dir.chdir 'lib/native' do Dir['*'].each do |file| - rm_rf file unless file == 'darwin' + rm_rf file unless file.downcase == 'darwin' end end - prefix.install Dir['*'] + (prefix+'jruby').install Dir['*'] + + bin.mkpath + Dir["#{prefix}/jruby/bin/*"].each do |f| + ln_s f, bin+File.basename(f) + end end def test -- cgit v1.2.3