Skip to content
Newer
Older
100644 318 lines (265 sloc) 7.82 KB
da5f9e6 @brixen Added load-order dependency generation to rake build:(core|platform) …
brixen authored Sep 4, 2007
1 require 'tsort'
2
d630d96 Rakefile now supports rake report:all which runs all of the reports. …
Ryantm authored Jun 19, 2007
3 task :default => :tasks
4
5 task :tasks do
6 puts `rake -T`
7 end
8dd2b6b @evanphx r43@vatu: evan | 2006-08-24 16:34:21 -0700
evanphx authored Aug 24, 2006
8
da5f9e6 @brixen Added load-order dependency generation to rake build:(core|platform) …
brixen authored Sep 5, 2007
9 class Hash
10 include TSort
11
12 alias tsort_each_node each_key
13
14 def tsort_each_child(node, &block)
15 fetch(node).each(&block)
16 end
17 end
18
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
19 def newer?(file, cmp)
20 File.exists?(cmp) and File.mtime(cmp) >= File.mtime(file)
21 end
939f9ac @evanphx Revert array changes back to r1088. r1089 is busted bigtime.
evanphx authored May 21, 2007
22
121d2bb @evanphx A little magic for a more bulletproof process. Run rake dev:setup aft…
evanphx authored Jul 4, 2007
23 @pb = "runtime/pristine_bootstrap.rba"
54cae11 @evanphx Added more IO stuff and platform methods.
evanphx authored Aug 23, 2007
24 @pp = "runtime/pristine_platform.rba"
121d2bb @evanphx A little magic for a more bulletproof process. Run rake dev:setup aft…
evanphx authored Jul 4, 2007
25 @pc = "runtime/pristine_core.rba"
541bcb5 @evanphx Complete reorganization of bootstrap. Addition of kernel/platform. FF…
evanphx authored Aug 17, 2007
26 @pl = "runtime/pristine_loader.rbc"
121d2bb @evanphx A little magic for a more bulletproof process. Run rake dev:setup aft…
evanphx authored Jul 4, 2007
27
28 if File.exists?(@pb)
29 puts "Using #{@pb} for bootstrap."
30 ENV['BOOTSTRAP'] = @pb
31 end
32
33 if File.exists?(@pc)
34 puts "Using #{@pc} for core."
35 ENV['CORE'] = @pc
36 end
37
541bcb5 @evanphx Complete reorganization of bootstrap. Addition of kernel/platform. FF…
evanphx authored Aug 18, 2007
38 if File.exists?(@pl)
39 puts "Using #{@pl} for the loader."
40 ENV['LOADER'] = @pl
41 end
42
54cae11 @evanphx Added more IO stuff and platform methods.
evanphx authored Aug 24, 2007
43 if File.exists?(@pp)
44 puts "Using #{@pp} for the platform."
45 ENV['PLATFORM'] = @pp
46 end
47
567d4f7 @evanphx Stack allocated lvars, GC fixes, compiler changes, oh my!
evanphx authored Jul 17, 2007
48 @compiler = ENV['COMPILER']
49
da5f9e6 @brixen Added load-order dependency generation to rake build:(core|platform) …
brixen authored Sep 5, 2007
50 def source_name(compiled)
51 File.basename(compiled, '.*') + '.rb'
52 end
53
54 def compiled_name(source, dir)
55 File.join(dir, File.basename(source, '.*') + '.rbc')
56 end
57
58 # Some files have load order dependencies. To specify a load order
59 # dependency, include a comment in the file that has the dependency.
60 # For example, assume files a.rb and b.rb, where a.rb requires that
61 # b.rb is loaded first. In a.rb, include a comment
62 # # depends on: b.rb
63 #
64 # The 'depends on:' declaration takes a space separated list of file.
65 # When the '.load_order.txt' file is created, a topological sort
66 # (see name caveat in TSort) of the dependencies is performed
67 # so files that are depended on are loaded first.
68 #
69 # If there is a 'depends on:' declarations for a non-existent file,
70 # or if there are cyclic dependencies, this method will not create
71 # the '.load_order.txt' file.
72
73 def create_load_order(files)
74 d = Hash.new { |h,k| h[k] = [] }
75
76 # assume all the files are in the same directory
77 dir = File.dirname(files.first)
78 files.each do |fname|
79 name = source_name(fname)
80 d[name]
81 File.open(File.join(dir, name), "r") do |f|
82 f.each do |line|
83 if m = /#\s*depends on:\s*(.*)/.match(line)
84 m[1].split.each { |dep| d[name] << dep }
85 end
86 end
87 end
88 end
89
90 File.open(".load_order.txt", "w") do |f|
91 begin
92 f.puts d.tsort.collect { |n| compiled_name(n, dir) }.join("\n")
93 rescue IndexError
94 puts "Unable to generate '.load_order.txt'"
95 puts "Most likely, a file includes a 'depends on:' declaration for a non-existent file"
96 exit 1
97 rescue TSort::Cyclic => e
98 puts "Unable to generate '.load_order.txt' due to a cyclic dependency\n (#{e.message})"
99 exit 1
100 end
101 end
102 end
103
104 def update_archive(files, archive, deps=true, dir=nil)
939f9ac @evanphx Revert array changes back to r1088. r1089 is busted bigtime.
evanphx authored May 21, 2007
105 archive = File.expand_path(ENV['OUTPUT'] || archive)
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
106
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
107 changed = []
108 files.each do |file|
109 cmp = "#{file}c"
939f9ac @evanphx Revert array changes back to r1088. r1089 is busted bigtime.
evanphx authored May 21, 2007
110 if !newer?(file, cmp)
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
111 changed << cmp
567d4f7 @evanphx Stack allocated lvars, GC fixes, compiler changes, oh my!
evanphx authored Jul 17, 2007
112 if @compiler
113 system "shotgun/rubinius -I#{@compiler} compile #{file}"
114 else
115 system "shotgun/rubinius compile #{file}"
116 end
939f9ac @evanphx Revert array changes back to r1088. r1089 is busted bigtime.
evanphx authored May 21, 2007
117 elsif !File.exists?(archive)
118 changed << cmp
6b9c27b Complete rspec coverage of subtend string compat to date.
Kev authored May 4, 2007
119 end
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
120 file << "c"
e1683f8 @brixen updated rake task doc:contrib:easy. Added spec:setup:code_cache to cl…
brixen authored Jan 31, 2007
121 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
122
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
123 curdir = Dir.getwd
124 if dir
939f9ac @evanphx Revert array changes back to r1088. r1089 is busted bigtime.
evanphx authored May 21, 2007
125 Dir.chdir(dir)
126 changed.map! { |f| f.gsub(%r!^#{dir}/!, "") }
cdfdc27 Added my idea of a sanity check against MRI for compatibility purposes
Mae authored Dec 26, 2006
127 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
128
da5f9e6 @brixen Added load-order dependency generation to rake build:(core|platform) …
brixen authored Sep 5, 2007
129 if deps
130 create_load_order(files)
131 else
132 File.open(".load_order.txt","w") { |f| f.puts files.join("\n") }
086f889 * bin/specrunner is a small bash kludge for running mini_rspec over
Eero Saynatkari authored May 2, 2007
133 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
134
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
135 if File.exists? archive
136 if changed.empty?
137 puts "No files to update."
138 else
139 system "zip -u #{archive} .load_order.txt #{changed.join(' ')}"
086f889 * bin/specrunner is a small bash kludge for running mini_rspec over
Eero Saynatkari authored May 2, 2007
140 end
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
141 else
939f9ac @evanphx Revert array changes back to r1088. r1089 is busted bigtime.
evanphx authored May 21, 2007
142 system "zip #{archive} .load_order.txt #{changed.join(' ')}"
086f889 * bin/specrunner is a small bash kludge for running mini_rspec over
Eero Saynatkari authored May 2, 2007
143 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
144
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
145 Dir.chdir(curdir) if dir
4d4f6fa @brixen Added namespaces to the Rakefile with aliases to the old tasks.
brixen authored Dec 14, 2006
146 end
147
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
148 # spec tasks
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
149 desc "Run all 'known good' specs (task alias for spec:ci)"
8b118bf Removed legacy rake tasks
Brian Ford authored Aug 11, 2007
150 task :spec => 'spec:ci'
d0e6b65 @brixen changes to support better CI specs
brixen authored Aug 18, 2007
151
03dfae6 @brixen Added rake task spec:ci. added svn:executable for bin/mspec. enhanced…
brixen authored Jun 11, 2007
152 namespace :spec do
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
153 namespace :setup do
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
154 # Setup for 'Subtend' specs. No need to call this yourself.
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
155 task :subtend do
156 Dir[File.join(ROOT,"spec/subtend/**/Rakefile")].each do |rakefile|
157 sh "rake -f #{rakefile}"
158 end
159 end
160 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
161
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
162 desc "Run continuous integration examples"
03dfae6 @brixen Added rake task spec:ci. added svn:executable for bin/mspec. enhanced…
brixen authored Jun 11, 2007
163 task :ci do
c7d623e @brixen enhanced spec:ci to take a target on the command line, invoke like: S…
brixen authored Jun 26, 2007
164 target = ENV['SPEC_TARGET'] || 'rbx'
165 system %(shotgun/rubinius -e 'puts "rbx build: \#{Rubinius::BUILDREV}"') if target == 'rbx'
4ef0b9f @brixen Updated exclusion list for CI specs.
brixen authored Aug 22, 2007
166 sh "bin/ci -t #{target}"
03dfae6 @brixen Added rake task spec:ci. added svn:executable for bin/mspec. enhanced…
brixen authored Jun 11, 2007
167 end
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
168
8b118bf Removed legacy rake tasks
Brian Ford authored Aug 12, 2007
169 spec_targets = %w(compiler core language library parser rubinius)
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
170 # Build a spec:<task_name> for each group of Rubinius specs
171 spec_targets.each do |group|
172 desc "Run #{group} examples"
d08e789 @brixen fixed typo. bad typo. that's a no.
brixen authored Jun 11, 2007
173 task group do
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
174 sh "bin/mspec spec/#{group}"
175 end
176 end
177
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
178 desc "Run subtend (Rubinius C API) examples"
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
179 task :subtend => "spec:setup:subtend" do
d0e6b65 @brixen changes to support better CI specs
brixen authored Aug 19, 2007
180 sh "bin/mspec spec/rubinius/subtend"
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
181 end
182
183 # Specdiffs to make it easier to see what your changes have affected :)
184 desc 'Run specs and produce a diff against current base'
185 task :diff => 'diff:run'
186
187 namespace :diff do
188 desc 'Run specs and produce a diff against current base'
189 task :run do
d0e6b65 @brixen changes to support better CI specs
brixen authored Aug 19, 2007
190 system 'bin/mspec -f ci -o spec/reports/specdiff.txt spec'
191 system 'diff -u spec/reports/base.txt spec/reports/specdiff.txt'
192 system 'rm spec/reports/specdiff.txt'
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
193 end
194
195 desc 'Replace the base spec file with a new one'
196 task :replace do
d0e6b65 @brixen changes to support better CI specs
brixen authored Aug 19, 2007
197 system 'bin/mspec -f ci -o spec/reports/base.txt spec'
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
198 end
199 end
d630d96 Rakefile now supports rake report:all which runs all of the reports. …
Ryantm authored Jun 19, 2007
200
201 task :r2r do
202 puts ARGV.inspect
203 end
03dfae6 @brixen Added rake task spec:ci. added svn:executable for bin/mspec. enhanced…
brixen authored Jun 11, 2007
204 end
205
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
206 desc "Build Shotgun (task alias for build:shotgun)"
6e51eee @brixen put guards on imcompatible specs to prevent ruby, jruby from running …
brixen authored Jun 11, 2007
207 task :build => ['build:shotgun']
208
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
209 desc "Removes build by-products for Rubinius runtime components"
210 task :clean => ['clean:compiler', 'clean:bootstrap', 'clean:core', 'clean:library']
211
212 namespace :clean do
213 desc "Removes build by-products for compiler"
214 task :compiler do
215 FileList['native/**/*.rbc', '/tmp/*.rbc'].each do |fn|
216 FileUtils.rm fn rescue nil
4d4f6fa @brixen Added namespaces to the Rakefile with aliases to the old tasks.
brixen authored Dec 14, 2006
217 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
218 end
219
220 desc "Removes build by-products for library"
221 task :library do
222 FileList['library/**/*.rbc'].each do |fn|
223 FileUtils.rm fn rescue nil
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
224 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
225 end
5468980 @evanphx kernel/ reorg! New functionality goes in kernel/core only. kernel.rba…
evanphx authored Jan 21, 2007
226
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
227 desc "Removes build by-products for bootstrap"
228 task :bootstrap do
229 FileList['kernel/bootstrap/**/*.rbc'].each do |fn|
230 FileUtils.rm fn rescue nil
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
231 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
232 end
5468980 @evanphx kernel/ reorg! New functionality goes in kernel/core only. kernel.rba…
evanphx authored Jan 21, 2007
233
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
234 desc "Removes build by-products for core"
235 task :core do
236 FileList['kernel/core/**/*.rbc'].each do |fn|
237 FileUtils.rm fn rescue nil
5468980 @evanphx kernel/ reorg! New functionality goes in kernel/core only. kernel.rba…
evanphx authored Jan 21, 2007
238 end
239 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
240 end
404f8ab Don't call configure on build:shotgun everytime.
Tilman authored Jun 16, 2007
241
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
242 namespace :build do
404f8ab Don't call configure on build:shotgun everytime.
Tilman authored Jun 16, 2007
243 file "shotgun/config.h" do
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
244 sh "./configure"
245 raise 'Failed to configure Rubinius' unless $?.success?
3751f33 @evanphx * Reworked the Rakefile to build the compiler by detection, like boot…
evanphx authored May 16, 2007
246 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
247
404f8ab Don't call configure on build:shotgun everytime.
Tilman authored Jun 16, 2007
248 task :configure => ["shotgun/config.h"] do
249 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
250
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
251 desc "Compiles shotgun (the C-code VM)"
252 task :shotgun => :configure do
685576c Ticket #80: Respect environment variables that influence the build pr…
Tilman authored Jun 7, 2007
253 sh "make"
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
254 raise 'Failed to build shotgun' unless $?.success?
34ad791 * Disabled Lightning's dissembler on amd64
Eero Saynatkari authored May 14, 2007
255 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
256
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
257 desc "Compiles the Rubinius bootstrap archive"
258 task :bootstrap do
259 files = Dir["kernel/bootstrap/*.rb"].sort
da5f9e6 @brixen Added load-order dependency generation to rake build:(core|platform) …
brixen authored Sep 5, 2007
260 update_archive files, 'runtime/bootstrap.rba', false
9463145 @brixen Updates to Rakefile, added rbx namespace to compile with rbx instead …
brixen authored Mar 28, 2007
261 end
34ad791 * Disabled Lightning's dissembler on amd64
Eero Saynatkari authored May 14, 2007
262
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
263 desc "Compiles the Rubinius core archive"
3751f33 @evanphx * Reworked the Rakefile to build the compiler by detection, like boot…
evanphx authored May 16, 2007
264 task :core do
34ad791 * Disabled Lightning's dissembler on amd64
Eero Saynatkari authored May 14, 2007
265 files = Dir["kernel/core/*.rb"].sort
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
266 update_archive files, 'runtime/core.rba'
34ad791 * Disabled Lightning's dissembler on amd64
Eero Saynatkari authored May 14, 2007
267 end
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
268
6001be6 @evanphx loader.rb is now seperated from bootstrap and core.
evanphx authored Jul 17, 2007
269 task :loader do
270 i = "kernel/loader.rb"
b8728ab @evanphx Switched to intcode (each opcode is 32bits now)
evanphx authored Jul 19, 2007
271 o = ENV['OUTPUT'] || "runtime/loader.rbc"
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
272
6001be6 @evanphx loader.rb is now seperated from bootstrap and core.
evanphx authored Jul 17, 2007
273 if @compiler
274 system "shotgun/rubinius -I#{@compiler} compile #{i} #{o}"
275 else
276 system "shotgun/rubinius compile #{i} #{o}"
277 end
278 end
279
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
280 desc "Compiles the Rubinius library archive"
9463145 @brixen Updates to Rakefile, added rbx namespace to compile with rbx instead …
brixen authored Mar 28, 2007
281 task :library do
da5f9e6 @brixen Added load-order dependency generation to rake build:(core|platform) …
brixen authored Sep 5, 2007
282 files = Dir["lib/**/*.rb"].sort
283 update_archive files, 'runtime/library.rba', false
4d4f6fa @brixen Added namespaces to the Rakefile with aliases to the old tasks.
brixen authored Dec 14, 2006
284 end
2ff0f11 @brixen added Andrew Thompson's Rakefile patches to catch errors in compilati…
brixen authored Jan 8, 2007
285
dc16b49 @wilson * Near-total rewrite of the Rakefile. Tasks that use rcompile are in …
wilson authored May 18, 2007
286 desc "Compiles the Rubinius compiler archive"
3751f33 @evanphx * Reworked the Rakefile to build the compiler by detection, like boot…
evanphx authored May 16, 2007
287 task :compiler do
fc54f03 @evanphx Cleaned up compiler layout
evanphx authored Aug 13, 2007
288 files = Dir["compiler/**/*.rb"].sort
da5f9e6 @brixen Added load-order dependency generation to rake build:(core|platform) …
brixen authored Sep 5, 2007
289 update_archive files, 'runtime/compiler.rba', false, "compiler"
e8b73c6 @wilson * Added build:delete_rbc task to clean up all rbc files, everywhere.
wilson authored Jan 8, 2007
290 end
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
291
541bcb5 @evanphx Complete reorganization of bootstrap. Addition of kernel/platform. FF…
evanphx authored Aug 18, 2007
292 desc "Compiles the Rubinius platform archive"
293 task :platform do
294 files = Dir["kernel/platform/*.rb"].sort
295 update_archive files, 'runtime/platform.rba'
296 end
baae928 big updates to reporting stuff
Mae authored Jan 27, 2007
297 end
b7db3df Further fixes to the completeness report raking
Cabo authored Jan 26, 2007
298
970dca2 @wilson Rakefile cleanup. Removed some tasks, renamed others. rake -T for det…
wilson authored Aug 30, 2007
299 desc "Remove all compiled Ruby files"
9e24421 @wilson * Use a random pivot point for better worst-case Array#sort performance
wilson authored May 25, 2007
300 task :pristine do
301 FileList['**/*.rbc'].each do |fn|
3a2c311 @wilson * rake pristine should not remove runtime/loader.rbc
wilson authored Aug 3, 2007
302 next if fn == 'runtime/loader.rbc'
9e24421 @wilson * Use a random pivot point for better worst-case Array#sort performance
wilson authored May 25, 2007
303 FileUtils.rm fn rescue nil
304 end
305 end
306
121d2bb @evanphx A little magic for a more bulletproof process. Run rake dev:setup aft…
evanphx authored Jul 4, 2007
307 # dev tasks
308 namespace :dev do
b4e6651 @wilson Give rake dev:setup a better description
wilson authored Aug 29, 2007
309 desc "Make a snapshot of the runtime files for your own safety"
121d2bb @evanphx A little magic for a more bulletproof process. Run rake dev:setup aft…
evanphx authored Jul 4, 2007
310 task :setup do
311 sh "cp runtime/core.rba #{@pc}"
312 sh "cp runtime/bootstrap.rba #{@pb}"
54cae11 @evanphx Added more IO stuff and platform methods.
evanphx authored Aug 24, 2007
313 sh "cp runtime/platform.rba #{@pp}"
314 sh "cp runtime/loader.rbc #{@pl}"
121d2bb @evanphx A little magic for a more bulletproof process. Run rake dev:setup aft…
evanphx authored Jul 4, 2007
315 end
316 end
317
Something went wrong with that request. Please try again.