From 3bbea8ed37278c9cc584bb25624eee05efebb117 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 28 Sep 2014 02:54:59 +0000 Subject: tool/downloader.rb: split particular sites * tool/downloader.rb (Downloader): split particular sites from the main class. * tool/downloader.rb (Downloader.download): show messages if verbose mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- common.mk | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'common.mk') diff --git a/common.mk b/common.mk index 158f9ec3ed..bb80ede536 100644 --- a/common.mk +++ b/common.mk @@ -1082,19 +1082,20 @@ $(srcdir)/tool/config.sub: $(Q) $(BASERUBY) -C $(@D) get-config_files $(@F) update-gems: PHONY - $(Q) $(RUNRUBY) -I$(srcdir)/tool -rdownloader -ans \ + $(ECHO) Downloading bundled gem files... + $(Q) $(RUNRUBY) -I$(srcdir)/tool -rdownloader -answ \ + -C "$(srcdir)/gems" \ -e 'gem, ver = *$$F' \ -e 'gem = "#{gem}-#{ver}.gem"' \ - -e 'puts "updating #{gem}"' \ - -e 'Downloader.download(:rubygems, gem, $$gemdir)' \ - -- -gemdir=$(srcdir)/gems $(srcdir)/gems/bundled_gems + -e 'Downloader::RubyGems.download(gem)' \ + bundled_gems update-unicode: - $(Q) $(BASERUBY) -I$(srcdir)/tool -rdownloader \ - -e 'puts "Downloading Unicode data files..."' \ - -e 'Downloader.download(:unicode, "UnicodeData.txt", "$(srcdir)/enc/unicode/data")' \ - -e 'Downloader.download(:unicode, "CompositionExclusions.txt", "$(srcdir)/enc/unicode/data")' \ - -e 'Downloader.download(:unicode, "NormalizationTest.txt", "$(srcdir)/enc/unicode/data")' + $(ECHO) Downloading Unicode data files... + $(Q) $(BASERUBY) -I$(srcdir)/tool -rdownloader -w \ + -C "$(srcdir)/enc/unicode/data" \ + -e 'ARGV.each{|f|Downloader::Unicode.download(f)}' \ + UnicodeData.txt CompositionExclusions.txt NormalizationTest.txt info: info-program info-libruby_a info-libruby_so info-arch info-program: -- cgit v1.2.3