From de89cd4ba8509859fa04acd3a0e5a2c9088e23c2 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 20 Jan 2015 23:57:53 +0000 Subject: make-snapshot: remove unused files * tool/make-snapshot (package): remove working directories and unused files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/make-snapshot | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tool/make-snapshot') diff --git a/tool/make-snapshot b/tool/make-snapshot index e87356455b..5bd21158c6 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -311,6 +311,16 @@ def package(vcs, rev, destdir, tmp = nil) 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 -- cgit v1.2.3