aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-31 00:04:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-05 09:44:18 +0900
commit44a0a66559ee4a03a84c27feca05e9b1b0f59df8 (patch)
treeb2b574c9e44bfafdbe3561e50f68bffd4c8a5373 /common.mk
parent41516b35418d6108c75d9f2190a846ded6a47108 (diff)
downloadruby-44a0a66559ee4a03a84c27feca05e9b1b0f59df8.tar.gz
Move to tool/lib/bundled_gem.rb
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/common.mk b/common.mk
index bce2e628ae..7e7e0bb67a 100644
--- a/common.mk
+++ b/common.mk
@@ -1361,16 +1361,16 @@ update-gems$(gnumake:yes=-sequential): PHONY
extract-gems$(gnumake:yes=-sequential): PHONY
$(ECHO) Extracting bundled gem files...
$(Q) $(BASERUBY) -C "$(srcdir)" \
- -Itool -rfileutils -rgem-unpack -answ \
+ -Itool/lib -rfileutils -rbundled_gem -answ \
-e 'BEGIN {d = ".bundle/gems"}' \
-e 'gem, ver, _, rev = *$$F' \
-e 'next if !ver or /^#/=~gem' \
-e 'g = "#{gem}-#{ver}"' \
-e 'if File.directory?("#{d}/#{g}")' \
-e 'elsif rev and File.exist?(gs = "gems/src/#{gem}/#{gem}.gemspec")' \
- -e 'Gem.copy(gs, ".bundle")' \
+ -e 'BundledGem.copy(gs, ".bundle")' \
-e 'else' \
- -e 'Gem.unpack("gems/#{g}.gem", ".bundle")' \
+ -e 'BundledGem.unpack("gems/#{g}.gem", ".bundle")' \
-e 'end' \
gems/bundled_gems