summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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