[macruby-changes] [2726] MacRuby/trunk/rakelib/packager.rake

source_changes at macosforge.org source_changes at macosforge.org
Mon Oct 5 15:31:35 PDT 2009


Revision: 2726
          http://trac.macosforge.org/projects/ruby/changeset/2726
Author:   lsansonetti at apple.com
Date:     2009-10-05 15:31:34 -0700 (Mon, 05 Oct 2009)
Log Message:
-----------
clean the temporary directory before doing anything + don't clean the objects if NO_CLEAN is passed

Modified Paths:
--------------
    MacRuby/trunk/rakelib/packager.rake

Modified: MacRuby/trunk/rakelib/packager.rake
===================================================================
--- MacRuby/trunk/rakelib/packager.rake	2009-10-05 20:34:15 UTC (rev 2725)
+++ MacRuby/trunk/rakelib/packager.rake	2009-10-05 22:31:34 UTC (rev 2726)
@@ -2,13 +2,16 @@
 task :nightly do
   build_destination = '/tmp/macruby-nightly'
   directory build_destination
-  puts "Cleaning the repo"
-  `rake clean`
-  puts "Updating the repo..."
-  if ENV['SCM'] == 'git-svn'
-    `git svn rebase`
-  else
-    `svn up`
+  rm_rf build_destination
+  unless ENV['NO_CLEAN']
+    puts "Cleaning the repo"
+    `rake clean`
+    puts "Updating the repo..."
+    if ENV['SCM'] == 'git-svn'
+      `git svn rebase`
+    else
+      `svn up`
+    end
   end
   puts "Building MacRuby"
   `rake`
@@ -16,4 +19,4 @@
   `rake install DESTDIR=#{build_destination}` 
   puts "Packaging MacRuby"
   `/Developer/usr/bin/packagemaker --doc #{File.expand_path(File.dirname(__FILE__))}/../misc/release/macruby_nightly.pmdoc/ --out ~/tmp/macruby_nightly-#{Time.now.strftime("%Y-%m-%d")}.pkg --version #{Time.now.strftime("%Y-%m-%d")}-nightly`
-end
\ No newline at end of file
+end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091005/e12b2b22/attachment.html>


More information about the macruby-changes mailing list