diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-25 04:37:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-25 04:37:58 +0000 |
commit | 913ed016c1efa45afd78c6c56484bbdd0fde9454 (patch) | |
tree | 0a55a360a971cd7c8531f0d07115266876170b1b | |
parent | 25661ef5adedb311196e39b7f924cdccfa239011 (diff) | |
download | ruby-913ed016c1efa45afd78c6c56484bbdd0fde9454.tar.gz |
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
-rw-r--r-- | common.mk | 4 |
1 files changed, 3 insertions, 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 |