[前][次][番号順一覧][スレッド一覧]

ruby-changes:37277

From: nobu <ko1@a...>
Date: Wed, 21 Jan 2015 08:58:08 +0900 (JST)
Subject: [ruby-changes:37277] nobu:r49358 (trunk): make-snapshot: remove unused files

nobu	2015-01-21 08:57:53 +0900 (Wed, 21 Jan 2015)

  New Revision: 49358

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49358

  Log:
    make-snapshot: remove unused files
    
    * tool/make-snapshot (package): remove working directories and
      unused files.

  Modified files:
    trunk/tool/make-snapshot
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 49357)
+++ tool/make-snapshot	(revision 49358)
@@ -311,6 +311,16 @@ def package(vcs, rev, destdir, tmp = nil https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L311
     end
     vcs.after_export(".") if exported
     FileUtils.rm_rf(clean)
+    FileUtils.rm_rf(".downloaded-cache")
+    if File.exist?("gems/bundled_gems")
+      gems = Dir.glob("gems/*.gem")
+      gems -= File.readlines("gems/bundled_gems").map {|line|
+        'gems/'+line.split(' ').join('-')+'.gem'
+      }
+      FileUtils.rm_f(gems)
+    else
+      FileUtils.rm_rf("gems")
+    end
     unless $?.success?
       puts " failed"
       return

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]