diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | common.mk | 4 | ||||
-rw-r--r-- | tool/downloader.rb | 2 |
3 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Oct 20 23:58:04 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * tool/downloader.rb: add -a option to always download regardless + existing files. + Mon Oct 20 23:18:18 2014 NAKAMURA Usaku <usa@ruby-lang.org> * lib/mkmf.rb: no need to convert path separator for COPY because it's @@ -1089,10 +1089,12 @@ update-gems: PHONY -e 'Downloader::RubyGems.download(gem)' \ bundled_gems +# ALWAYS_UPDATE_UNICODE = yes + update-unicode: PHONY $(ECHO) Downloading Unicode data files... $(Q) $(BASERUBY) -C "$(srcdir)/enc/unicode/data" \ - ../../../tool/downloader.rb unicode \ + ../../../tool/downloader.rb -e $(ALWAYS_UPDATE_UNICODE:yes=-a) unicode \ UnicodeData.txt CompositionExclusions.txt NormalizationTest.txt enc/unicode/data/UnicodeData.txt \ diff --git a/tool/downloader.rb b/tool/downloader.rb index 0a6a9c5056..49a1de326c 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -113,6 +113,8 @@ if $0 == __FILE__ ARGV.shift when '-e' ims = nil + when '-a' + ims = true when /\A-/ abort "#{$0}: unknown option #{ARGV[0]}" else |