1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Added refresh-gems

Refreshes bundled gems to the latest version, and extracts them.
This commit is contained in:
Nobuyoshi Nakada 2019-10-24 01:42:31 +09:00
parent 7391db4ab3
commit f1d4216bd9
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
2 changed files with 10 additions and 1 deletions

View file

@ -1243,6 +1243,8 @@ update-config_files: PHONY
$(Q) $(BASERUBY) -C "$(srcdir)" tool/downloader.rb -d tool --cache-dir=$(CACHE_DIR) -e gnu \
config.guess config.sub
refresh-gems: update-bundled_gems update-gems extract-gems
update-gems: PHONY
$(ECHO) Downloading bundled gem files...
$(Q) $(BASERUBY) -C "$(srcdir)" \

View file

@ -241,8 +241,15 @@ HELP_EXTRA_TASKS = \
" update-github: merge master branch and push it to Pull Request [PR=1234]" \
""
ifeq ($(words $(filter update-gems extract-gems,$(MAKECMDGOALS))),2)
ifneq ($(filter refresh-gems,$(MAKECMDGOALS)),)
extract-gems: update-gems
update-gems: update-bundled_gems
endif
ifneq ($(filter extract-gems,$(MAKECMDGOALS)),)
extract-gems: $(filter update-gems update-bundled_gems,$(MAKECMDGOALS))
endif
ifneq ($(filter update-gems,$(MAKECMDGOALS)),)
update-gems: $(filter update-bundled_gems,$(MAKECMDGOALS))
endif
ifeq ($(filter 0 1,$(words $(arch_flags))),)