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@88 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Mar 13, 2008
1 parent 79a8419 commit 51802d5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions instruby.rb
Expand Up @@ -417,16 +417,17 @@ def mkdir_p(target, *flags)
super(with_destdir(target), *flags)
end

def install_stuff(what, from, to)
def install_stuff(what, from, to, mode)
puts "installing #{what}"
mkdir_p to, :mode => 0755
install_recursive from, to, :mode => 0755
mkdir_p to, :mode => mode
install_recursive from, to, :mode => mode
Dir.glob(File.join(to, '**', '.svn')).each { |x| rm_rf(x) }
end

install_stuff('Xcode templates', 'misc/xcode-templates',
'/Library/Application Support/Developer/3.0/Xcode')
install_stuff('samples', 'sample-macruby', '/Developer/Examples/Ruby/MacRuby')
'/Library/Application Support/Developer/3.0/Xcode', 0755)
install_stuff('samples', 'sample-macruby',
'/Developer/Examples/Ruby/MacRuby', 0775)

if RUBY_FRAMEWORK
puts "installing framework"
Expand Down

0 comments on commit 51802d5

Please sign in to comment.