Skip to content

Commit

Permalink
merging with trunk
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/testing@86 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Mar 13, 2008
1 parent 078336a commit 79a8419
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions instruby.rb
Expand Up @@ -409,6 +409,14 @@ def with_destdir(dir)
end
end

def ln_sfh(source, target)
ln_sf(source, target) unless File.symlink?(with_destdir(target))
end

def mkdir_p(target, *flags)
super(with_destdir(target), *flags)
end

def install_stuff(what, from, to)
puts "installing #{what}"
mkdir_p to, :mode => 0755
Expand All @@ -420,10 +428,6 @@ def install_stuff(what, from, to)
'/Library/Application Support/Developer/3.0/Xcode')
install_stuff('samples', 'sample-macruby', '/Developer/Examples/Ruby/MacRuby')

def ln_sfh(source, target)
ln_sf(source, target) unless File.symlink?(target)
end

if RUBY_FRAMEWORK
puts "installing framework"
base = File.join(CONFIG["prefix"], '..')
Expand Down
3 changes: 2 additions & 1 deletion objc.m
Expand Up @@ -2262,7 +2262,8 @@

#undef FIND_LOAD_PATH_IN_LIBRARY

rb_raise(rb_eRuntimeError, "framework `%s' not found", cstr);
rb_raise(rb_eRuntimeError, "framework `%s' not found",
RSTRING_PTR(framework));
}

success:
Expand Down

0 comments on commit 79a8419

Please sign in to comment.