summaryrefslogtreecommitdiff
path: root/bin/rake-compiler
blob: 27041c9cb7603430139d6c96eaa4ed2a2182c266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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