summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-23 12:09:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-23 12:09:30 +0000
commit4f123ebd39a3b7dea34652626354c98da9c2f13c (patch)
treeea731a1aa8de21956471163580f87810731f3b72 /common.mk
parent0b5227b8bd47211575e8239a2d2763dd3db3a979 (diff)
common.mk: update-gems
* common.mk (update-gems): update bundled gem files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 2c8f914ccf..2c21bb715f 100644
--- a/common.mk
+++ b/common.mk
@@ -1081,6 +1081,14 @@ $(srcdir)/tool/config.guess:
$(srcdir)/tool/config.sub:
$(Q) $(BASERUBY) -C $(@D) get-config_files $(@F)
+update-gems: PHONY
+ $(Q) $(RUNRUBY) -I$(srcdir)/tool -rdownloader -ans \
+ -e 'gem, ver = *$$F' \
+ -e 'gem = "#{gem}-#{ver}.gem"' \
+ -e 'puts "updating #{gem}"' \
+ -e 'Downloader.download(:rubygems, gem, $$gemdir)' \
+ -- -gemdir=$(srcdir)/gems $(srcdir)/gems/bundled_gems
+
info: info-program info-libruby_a info-libruby_so info-arch
info-program:
@echo PROGRAM=$(PROGRAM)