aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 09:25:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 09:25:05 +0000
commit1d12b93b391a8c9f4636eb984a0c11794820386a (patch)
treeaa16277e2cece311a707394f3328bef6795dc29b /common.mk
parent4bd2573fc935440dfb9e952348577af3bfcdc968 (diff)
downloadruby-1d12b93b391a8c9f4636eb984a0c11794820386a.tar.gz
common.mk: preserve rest fields of bundled_gems
* common.mk (update-bundled_gems): preserve rest fields other than names and versions, for more extensions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 2eddfa53f6..ea3443a5ac 100644
--- a/common.mk
+++ b/common.mk
@@ -1149,7 +1149,9 @@ update-bundled_gems: PHONY
$(Q) $(RUNRUBY) -rrubygems \
-pla \
-e '$$_=Gem::SpecFetcher.fetcher.detect(:latest) {|s|' \
- -e 'break "#{s.name} #{s.version}" if s.platform=="ruby"&&s.name==$$F[0]' \
+ -e 'if s.platform=="ruby"&&s.name==$$F[0]' \
+ -e 'break [s.name, s.version, *$$F[2..-1]].join(" ")' \
+ -e 'end' \
-e '}' \
"$(srcdir)/gems/bundled_gems" | \
"$(IFCHANGE)" "$(srcdir)/gems/bundled_gems" -