aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-21 16:45:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-21 16:45:35 +0000
commit913510abaf88c3d34855af103498e017128458c6 (patch)
tree3491391b74efd9117722c492c4bb099df4a8387a /common.mk
parenta88af7986b17aa58d7844625b3f63cd38fd6a38a (diff)
downloadruby-913510abaf88c3d34855af103498e017128458c6.tar.gz
downloader cache
* tool/downloader.rb (Downloader.download): manage download cache. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk11
1 files changed, 5 insertions, 6 deletions
diff --git a/common.mk b/common.mk
index befe98fddc..bde5613564 100644
--- a/common.mk
+++ b/common.mk
@@ -1096,20 +1096,19 @@ update-mspec:
update-rubyspec:
update-config_files: PHONY
- $(Q) $(BASERUBY) -C "$(srcdir)/tool" \
- ../tool/downloader.rb -e gnu \
+ $(Q) $(BASERUBY) -C "$(srcdir)" tool/downloader.rb -d tool -e gnu \
config.guess config.sub
update-gems: PHONY
$(ECHO) Downloading bundled gem files...
- $(Q) $(BASERUBY) -C "$(srcdir)/gems" \
- -I../tool -rdownloader -answ \
+ $(Q) $(BASERUBY) -C "$(srcdir)" \
+ -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) and' \
+ -e 'Downloader::RubyGems.download(gem, "gems", nil) and' \
-e 'File.unlink(*(old-[gem]))' \
- bundled_gems
+ gems/bundled_gems
extract-gems: PHONY
$(ECHO) Extracting bundled gem files...