summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-19 00:26:31 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-19 00:26:31 +0000
commiteb2e931f6f44c7f3c0701ba38ba8bdd9e3a3b40b (patch)
tree9f60b80e2261d2f463b3631ffbcb5694383fdd73 /tool
parentd1dce26b9497359c5aa8cde398d04130813027fb (diff)
downloadruby-eb2e931f6f44c7f3c0701ba38ba8bdd9e3a3b40b.tar.gz
add option to deal with Unicode beta data files
Unicode uses file names with explicit versions for beta publication. This commit introduces a variable on the makefile level to distinguish between beta and regular versions of file names. common.mk: Define new variable UNICODE_BETA, usually set to NO, but would be YES during tests with beta data files. Pass the value of this variable to tool/downloader.rb with option --unicode-beta. tool/downloader.rb: Receive and store value of --unicode-beta. Raise an exception if value is YES, because we don't yet actually deal with this case. Continue as usual if value is not YES. This completes the changes needed in the makefile. Upcomming changes will only affect tool/downloader.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/downloader.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index ee6242676d..46f8bea96e 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -310,6 +310,15 @@ if $0 == __FILE__
when '--cache-dir'
options[:cache_dir] = ARGV[1]
ARGV.shift
+ when '--unicode-beta'
+ options[:unicode_beta] = ARGV[1]
+ ARGV.shift
+ # TODO: Move this code further down
+ if options[:unicode_beta]=='YES'
+ raise "Not yet able to deal with Unicode Data beta versions."
+ else
+ # TODO: deal with the case that we just switched from beta to 'regular'
+ end
when /\A--cache-dir=(.*)/m
options[:cache_dir] = $1
when /\A-/