aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--common.mk4
-rw-r--r--tool/downloader.rb2
3 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b9cf14bcf..ddcd739bf1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/common.mk b/common.mk
index e1beb19462..222c7745cd 100644
--- a/common.mk
+++ b/common.mk
@@ -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