summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuis Lavena <luislavena@gmail.com>2008-11-26 22:03:08 -0200
committerLuis Lavena <luislavena@gmail.com>2008-11-26 22:03:08 -0200
commit8acd25139737ac16e6274fff21898d0ce48c531f (patch)
tree55243b0e7f0eb0e6c893e0360ceaee21ebc98d1e /bin
parented621c7bb7edca8d4e6eb18f7a00df42c333b390 (diff)
downloadrake-compiler-8acd25139737ac16e6274fff21898d0ce48c531f.tar.gz
Not yet ready for prime-time: cross-ruby.
Added binary and Rake tasks to compile and build cross-platform versions of Ruby (default to 1.8.6-p287). Execution is required for Rake::CrossCompileTask function properly.
Diffstat (limited to 'bin')
-rw-r--r--bin/rake-compiler26
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/rake-compiler b/bin/rake-compiler
new file mode 100644
index 0000000..27041c9
--- /dev/null
+++ b/bin/rake-compiler
@@ -0,0 +1,26 @@
+#!/usr/bin/env ruby
+
+#--
+# Copyright (c) 2008 Luis Lavena
+#
+# This source code is released under the MIT License.
+# See LICENSE file for details
+#++
+
+begin
+ require 'rake'
+rescue LoadError
+ require 'rubygems'
+ require 'rake'
+end
+
+# Move into user home to initialize Rake
+Dir.chdir File.expand_path("~") do
+ Rake.application.init('rake-compiler')
+}
+
+# Load the already cooked tasks ;-)
+load File.join(File.dirname(__FILE__), %w{.. tasks cross Rakefile})
+
+# delegate control to Rake
+Rake.application.top_level