1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

common.mk: remove old gems

* common.mk (update-gems): remove old version gems after
  successfully downloaded.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-11-25 04:37:58 +00:00
parent 25661ef5ad
commit 913ed016c1

View file

@ -893,8 +893,10 @@ update-gems: PHONY
$(Q) $(RUNRUBY) -C "$(srcdir)/gems" \
-I../tool -rdownloader -answ \
-e 'gem, ver = *$$F' \
-e 'old = Dir.glob("#{gem}-*.gem")' \
-e 'gem = "#{gem}-#{ver}.gem"' \
-e 'Downloader::RubyGems.download(gem, nil, nil)' \
-e 'Downloader::RubyGems.download(gem, nil, nil) and' \
-e 'File.unlink(*(old-[gem]))' \
bundled_gems
UPDATE_LIBRARIES = no