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

ruby-changes:36761

From: nobu <ko1@a...>
Date: Mon, 15 Dec 2014 10:30:40 +0900 (JST)
Subject: [ruby-changes:36761] nobu:r48842 (trunk): make-snapshot: reuse downloaded files

nobu	2014-12-15 10:30:30 +0900 (Mon, 15 Dec 2014)

  New Revision: 48842

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

  Log:
    make-snapshot: reuse downloaded files
    
    * tool/make-snapshot (package): reuse already downloaded files if
      existing.

  Modified files:
    trunk/tool/make-snapshot
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 48841)
+++ tool/make-snapshot	(revision 48842)
@@ -180,10 +180,17 @@ def package(vcs, rev, destdir, tmp = nil https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L180
   else
     v = "ruby"
     puts "Exporting #{rev}@#{revision}"
-    unless vcs.export(revision, url, tmp ? File.join(tmp, v) : v) {|line| print line}
+    exported = tmp ? File.join(tmp, v) : v
+    unless vcs.export(revision, url, exported) {|line| print line}
       warn("Export failed")
       return
     end
+    if $srcdir
+      Dir.glob($srcdir + "/{tool/config.{guess,sub},gems/*.gem}") do |file|
+        puts "copying #{file}"
+        FileUtils.cp(file, exported + file[$srcdir.size..-1], preserve: true)
+      end
+    end
   end
 
   Dir.chdir(tmp) if tmp

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

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