summaryrefslogtreecommitdiff
path: root/tasks/bootstrap.rake
diff options
context:
space:
mode:
authorLuis Lavena <luislavena@gmail.com>2010-11-24 21:01:50 -0300
committerLuis Lavena <luislavena@gmail.com>2010-11-24 21:01:50 -0300
commit7f40fc08311b17b176e20a4beb55f9eb89bcaa2d (patch)
tree1f78c2469171eea2568067c81a509e7e04b499bb /tasks/bootstrap.rake
parentbcf6b1a5e861bdd3e0cfe9aff767d9d2255320c5 (diff)
downloadrake-compiler-7f40fc08311b17b176e20a4beb55f9eb89bcaa2d.tar.gz
Helping you help me ;-)
Diffstat (limited to 'tasks/bootstrap.rake')
-rw-r--r--tasks/bootstrap.rake11
1 files changed, 11 insertions, 0 deletions
diff --git a/tasks/bootstrap.rake b/tasks/bootstrap.rake
new file mode 100644
index 0000000..8f1e0cf
--- /dev/null
+++ b/tasks/bootstrap.rake
@@ -0,0 +1,11 @@
+desc 'Ensure all the cross compiled versions are installed'
+task :bootstrap do
+ fail "Sorry, this only works on OSX and Linux" if RUBY_PLATFORM =~ /mswin|mingw/
+
+ versions = %w(1.8.6-p398 1.9.1-p243 1.9.2-p0)
+
+ versions.each do |version|
+ puts "[INFO] Attempt to cross-compile Ruby #{version}"
+ ruby "-Ilib bin/rake-compiler cross-ruby VERSION=#{version}"
+ end
+end