[2803] MacRuby/trunk/instruby.rb
Revision: 2803 http://trac.macosforge.org/projects/ruby/changeset/2803 Author: lsansonetti@apple.com Date: 2009-10-14 17:51:44 -0700 (Wed, 14 Oct 2009) Log Message: ----------- don't screw up /usr/local/bin/llc with a symlink Modified Paths: -------------- MacRuby/trunk/instruby.rb Modified: MacRuby/trunk/instruby.rb =================================================================== --- MacRuby/trunk/instruby.rb 2009-10-14 23:31:57 UTC (rev 2802) +++ MacRuby/trunk/instruby.rb 2009-10-15 00:51:44 UTC (rev 2803) @@ -484,8 +484,8 @@ mkdir_p dest_bin, :mode => 0755 Dir.entries(with_destdir(CONFIG['bindir'])).each do |bin| next if bin[0] == '.' - # Except rb_nibtool! - next if bin == 'rb_nibtool' + # Except rb_nibtool & llc! + next if bin == 'rb_nibtool' or bin == 'llc' link = File.join("../../../", CONFIG['bindir'], bin) link.sub!(/#{MACRUBY_VERSION}/, 'Current') ln_sfh link, File.join(dest_bin, File.basename(bin)) @@ -519,7 +519,8 @@ install('tool/rb_nibtool.old', ib_dest, :mode => $prog_mode) puts "installing LLVM tools" -install('/usr/local/bin/llc', CONFIG['bindir'], :mode => $prog_mode) +llc_dest = File.join(CONFIG['bindir'], 'llc') +install('/usr/local/bin/llc', llc_dest, :mode => $prog_mode) end # unless $installing_rdoc
participants (1)
-
source_changes@macosforge.org