diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-25 14:25:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-25 14:25:39 +0000 |
commit | b1dc6071846a466b37b3af94600b3609080d1c92 (patch) | |
tree | f1b298fd707ffac749bcea2bd47234407f994425 /common.mk | |
parent | 09ea07e02c96135ed58831ce4216db82e4233c43 (diff) | |
download | ruby-b1dc6071846a466b37b3af94600b3609080d1c92.tar.gz |
common.mk: remove old gems at update-gems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1131,10 +1131,11 @@ update-gems: PHONY $(Q) $(BASERUBY) -C "$(srcdir)" \ -I./tool -rdownloader -answ \ -e 'gem, ver = *$$F' \ - -e 'old = Dir.glob("#{gem}-*.gem")' \ + -e 'old = Dir.glob("gems/#{gem}-*.gem")' \ -e 'gem = "#{gem}-#{ver}.gem"' \ -e 'Downloader::RubyGems.download(gem, "gems", nil) and' \ - -e 'File.unlink(*(old-[gem]))' \ + -e 'old.delete("gems/#{gem}") and' \ + -e 'File.unlink(*old) and FileUtils.rm_rf(old.map{|n|n.chomp(".gem")})' \ gems/bundled_gems extract-gems: PHONY |