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:
parent
25661ef5ad
commit
913ed016c1
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue