mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
df0dcd4815
commit
de89cd4ba8
1 changed files with 10 additions and 0 deletions
|
@ -311,6 +311,16 @@ def package(vcs, rev, destdir, tmp = nil)
|
||||||
end
|
end
|
||||||
vcs.after_export(".") if exported
|
vcs.after_export(".") if exported
|
||||||
FileUtils.rm_rf(clean)
|
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?
|
unless $?.success?
|
||||||
puts " failed"
|
puts " failed"
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue