Permalink
Browse files

A little magic for a more bulletproof process. Run rake dev:setup aft…

…er a checkout and pristine copies of core and bootstrap will always be used to compile files.
  • Loading branch information...
evanphx committed Jul 4, 2007
1 parent 06d2fd7 commit 121d2bb719be3e6e43d87715044e84a259a04cb0
Showing with 23 additions and 0 deletions.
  1. +23 −0 Rakefile
View
@@ -11,6 +11,19 @@ def newer?(file, cmp)
File.exists?(cmp) and File.mtime(cmp) >= File.mtime(file)
end
+@pb = "runtime/pristine_bootstrap.rba"
+@pc = "runtime/pristine_core.rba"
+
+if File.exists?(@pb)
+ puts "Using #{@pb} for bootstrap."
+ ENV['BOOTSTRAP'] = @pb
+end
+
+if File.exists?(@pc)
+ puts "Using #{@pc} for core."
+ ENV['CORE'] = @pc
+end
+
def update_archive(files, archive, dir=nil)
archive = File.expand_path(ENV['OUTPUT'] || archive)
@@ -241,3 +254,13 @@ namespace :svn do
end
end
+# dev tasks
+
+namespace :dev do
+ desc "Make a few changes to support easier development"
+ task :setup do
+ sh "cp runtime/core.rba #{@pc}"
+ sh "cp runtime/bootstrap.rba #{@pb}"
+ end
+end
+

0 comments on commit 121d2bb

Please sign in to comment.