Skip to content

Commit

Permalink
Fixed rake install. Issues on your platform?--File a ticket.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ford committed Sep 29, 2009
1 parent 4627fd7 commit b428a87
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions Rakefile
Expand Up @@ -93,23 +93,16 @@ desc "Uninstall Rubinius"
task :uninstall do
rm_rf install_bin
rm_rf RBX_BASE_PATH
sh "rake clean"
sh "rake -q clean"
end

desc "Install Rubinius"
task :install do
puts "THIS IS BROKEN, SORRY."
puts "Just link 'bin/rbx' into a bin directory and use it like that."
puts "Patches welcome to fix install."
exit 1
end

task :old_install => %w[
task :install => %w[
clean
install:build
install:files
] do
sh "rake clean"
sh "rake -q clean"
puts "Install complete."
puts "The install versions of files have been cleaned."
puts "Run 'rake build' to rebuild development versions."
Expand All @@ -121,7 +114,7 @@ namespace :install do
task :build do
ENV['RBX_PREFIX'] = ENV['PREFIX'] || "/usr/local"
ENV['RBX_RUNTIME'] = File.join(Dir.pwd, 'runtime')
sh "rake build"
sh "rake -q build"
end

# Internal task, not documented with desc. Performs the
Expand All @@ -134,12 +127,9 @@ namespace :install do
mkdir_p RBX_BIN_PATH, :verbose => true
mkdir_p RBX_LIB_PATH, :verbose => true

install "vm/subtend/ruby.h", File.join(RBX_EXT_PATH, "ruby.h"),
:mode => 0644, :verbose => true

File.open File.join(RBX_EXT_PATH, "defines.h"), "w" do |f|
f.puts "// This file left empty"
end
capi_header_files = Rake::FileList.new "vm/capi/*.h"
install_files capi_header_files, RBX_EXT_PATH

File.open File.join(RBX_EXT_PATH, "missing.h"), "w" do |f|
f.puts "// This file left empty"
Expand All @@ -155,7 +145,13 @@ namespace :install do
install_files lib_files, RBX_LIB_PATH

Rake::FileList.new("#{RBX_LIB_PATH}/**/*.rb").sort.each do |rb|
compile_ruby rb, "#{rb}c"
begin
compile_ruby rb, "#{rb}c"
rescue Object => e
puts "Error compiling #{rb}!"
puts e.backtrace
puts "Install continuing but please file a ticket"
end
end

install 'vm/vm', install_bin, :mode => 0755, :verbose => true
Expand Down

0 comments on commit b428a87

Please sign in to comment.