Skip to content
Browse files

rake task to build rbx

  • Loading branch information...
1 parent 545a2e7 commit b4a16bc75687527c4b064b2c3eeae3e5699797c2 @hone hone committed Nov 9, 2011
Showing with 23 additions and 0 deletions.
  1. +23 −0 Rakefile
View
23 Rakefile
@@ -159,6 +159,29 @@ task "ruby:install", :version do |t, args|
end
end
+desc "install rbx"
+task "rbx:install", :version do |t, args|
+ version = args[:version]
+ name = "rubinius-#{version}"
+ output = "rbx-#{version}"
+ prefix = "/app/vendor/#{output}"
+
+ Dir.mktmpdir("rbx-") do |tmpdir|
+ Dir.chdir(tmpdir) do |dir|
+ FileUtils.rm_rf("#{tmpdir}/*")
+
+ sh "curl http://asset.rubini.us/#{name}.tar.gz -s -o - | tar vzxf -"
+ build_command = [
+ "./configure --prefix #{prefix}",
+ "rake install"
+ ].join(" && ")
+
+ sh "vulcan build -v -o #{output}.tgz --source #{name} --prefix #{prefix} --command=\"#{build_command}\""
+ s3_upload(tmpdir, output)
+ end
+ end
+end
+
desc "generate ruby versions manifest"
task "ruby:manifest" do
require 'rexml/document'

0 comments on commit b4a16bc

Please sign in to comment.
Something went wrong with that request. Please try again.