diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-31 09:49:41 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-31 10:49:55 +0900 |
commit | abfd859b139545110e1fcdd8e99575d5e0bfb4e4 (patch) | |
tree | bf4731f0f0ecbc94bf5e949853badd5592986ddd /common.mk | |
parent | c499a4c28a62813752aeb894d68d92fcec850ac0 (diff) | |
download | ruby-abfd859b139545110e1fcdd8e99575d5e0bfb4e4.tar.gz |
Remove github and git related files from extracted bundled gems
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1358,12 +1358,13 @@ update-gems$(gnumake:yes=-nongnumake): PHONY extract-gems$(gnumake:yes=-nongnumake): PHONY $(ECHO) Extracting bundled gem files... $(Q) $(RUNRUBY) -C "$(srcdir)" \ - -Itool -rgem-unpack -answ \ + -Itool -rfileutils -rgem-unpack -answ \ -e 'BEGIN {FileUtils.mkdir_p(d = ".bundle/gems")}' \ -e 'gem, ver = *$$F' \ -e 'next if !ver or /^#/=~gem' \ -e 'g = "#{gem}-#{ver}"' \ -e 'File.directory?("#{d}/#{g}") or Gem.unpack("gems/#{g}.gem", d)' \ + -e 'FileUtils.rm_rf("#{d}/#{g}/.github")' \ gems/bundled_gems update-bundled_gems: PHONY |