summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-06 15:56:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-06 16:11:09 +0900
commit967ed35bbb2c42646b764ce9f72d69e609e2eafd (patch)
tree194aa33631d2bcc2d643764eeb1a4cb73eac3c0f /common.mk
parent18b2ce11b5b0736723aa321e77c67be4395c3297 (diff)
Moved update-bundled_gems code to a tool
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk11
1 files changed, 1 insertions, 10 deletions
diff --git a/common.mk b/common.mk
index 95dae70252..b334056b4a 100644
--- a/common.mk
+++ b/common.mk
@@ -1328,16 +1328,7 @@ extract-gems$(gnumake:yes=-nongnumake): PHONY
update-bundled_gems: PHONY
$(Q) $(RUNRUBY) -rrubygems \
- -pla \
- -e 'unless /^[^#]/!~(gem=$$F[0])' \
- -e '(gem,src), = Gem::SpecFetcher.fetcher.detect(:latest) {'"|s|" \
- -e 's.platform=="ruby"&&s.name==gem' \
- -e '}' \
- -e 'gem = src.fetch_spec(gem)' \
- -e 'uri = gem.metadata["source_code_uri"]||gem.homepage' \
- -e 'uri = uri.sub(%r[\Ahttps://github\.com/[^/]+/[^/]+\K/tree/.*], "")' \
- -e '$$_ = [gem.name, gem.version, uri].join(" ")' \
- -e 'end' \
+ $(tooldir)/update-bundled_gems.rb \
"$(srcdir)/gems/bundled_gems" | \
"$(IFCHANGE)" "$(srcdir)/gems/bundled_gems" -