-
Notifications
You must be signed in to change notification settings - Fork 303
/
rakefile.rb
47 lines (38 loc) · 1.07 KB
/
rakefile.rb
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env ruby
# Ensure '.' is in the LOAD_PATH in Ruby 1.9.2
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))
# Load Rake
begin
require 'rake'
rescue LoadError
require 'rubygems'
require 'rake'
end
# Add extensions to core Ruby classes
require 'rake/core_extensions'
# RubyInstaller configuration data
require 'config/ruby_installer'
require 'config/dependencies'
# DevKit configuration data
require 'config/devkit'
# Docs configuration data
require 'config/docs'
# Added download task from buildr
require 'rake/downloadtask'
require 'rake/extracttask'
require 'rake/checkpoint'
require 'rake/env'
require 'rake/ruby_tools'
# scan all override definitions and load them
Dir.glob('override/*.rb').sort.each do |f|
begin
puts "Loading override #{File.basename(f)}" if Rake.application.options.trace
require f
rescue StandardError => e
warn "WARN: Problem loading #{f}: #{e.message}"
end
end
Dir.glob("#{RubyInstaller::ROOT}/recipes/**/*.rake").sort.each do |ext|
puts "Loading #{File.basename(ext)}" if Rake.application.options.trace
load ext
end