Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (34 sloc) 0.994 kb
976c328 @luislavena Big update, messed up CR+LF, LF and UTF8 encoding.
luislavena authored
1 #!/usr/bin/env ruby
2
023433d @luislavena Preprend rubyinstaller root folder for $LOAD_PATH
luislavena authored
3 # Ensure '.' is in the LOAD_PATH in Ruby 1.9.2
4 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))
5
976c328 @luislavena Big update, messed up CR+LF, LF and UTF8 encoding.
luislavena authored
6 # Load Rake
7 begin
8 require 'rake'
9 rescue LoadError
10 require 'rubygems'
11 require 'rake'
12 end
13
282e918 @jonforums Enable Ruby core extensions and String#camelcase.
jonforums authored
14 # Add extensions to core Ruby classes
15 require 'rake/core_extensions'
16
976c328 @luislavena Big update, messed up CR+LF, LF and UTF8 encoding.
luislavena authored
17 # RubyInstaller configuration data
18 require 'config/ruby_installer'
19
63e9c5e @jonforums add initial DevKit configuration
jonforums authored
20 # DevKit configuration data
21 require 'config/devkit'
22
8649800 @jonforums Use basic-bsdtar instead of 7zip extraction.
jonforums authored
23 # Added download task from buildr
24 require 'rake/downloadtask'
25 require 'rake/extracttask'
57b1436 @luislavena Use of checkpoints for devkit.
luislavena authored
26 require 'rake/checkpoint'
0db7b6c @luislavena Allow appending of env variables.
luislavena authored
27 require 'rake/env'
8649800 @jonforums Use basic-bsdtar instead of 7zip extraction.
jonforums authored
28
cabe154 @luislavena Load all ruby scripts from override
luislavena authored
29 # scan all override definitions and load them
30 Dir.glob('override/*.rb').sort.each do |f|
31 begin
671951b @luislavena Trace loading of overrides
luislavena authored
32 puts "Loading override #{File.basename(f)}" if Rake.application.options.trace
cabe154 @luislavena Load all ruby scripts from override
luislavena authored
33 require f
34 rescue StandardError => e
35 warn "WARN: Problem loading #{f}: #{e.message}"
36 end
976e0ad @jonforums Allow default build configuration to be overridden.
jonforums authored
37 end
38
976c328 @luislavena Big update, messed up CR+LF, LF and UTF8 encoding.
luislavena authored
39 Dir.glob("#{RubyInstaller::ROOT}/recipes/**/*.rake").sort.each do |ext|
40 puts "Loading #{File.basename(ext)}" if Rake.application.options.trace
41 load ext
42 end
Something went wrong with that request. Please try again.