summaryrefslogtreecommitdiff
path: root/tool/enc-unicode.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-02 03:12:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-02 03:12:51 +0000
commit01830719f641ee9b56e0a6f5ef24759202761476 (patch)
tree0789c4d448287ca4873f4fefee065006d9dbed1b /tool/enc-unicode.rb
parent8b180dd74ef7604bc896275ce2a13a1d8c2c2565 (diff)
fix for emoji-data.txt
* common.mk: download emoji-data.txt. As emoji data files are located in a separate directory in Unicode.org site, reearranged Unicode data files directories same as the site. * tool/enc-unicode.rb (get_file): search emoji data files in the second argument path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/enc-unicode.rb')
-rwxr-xr-xtool/enc-unicode.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb
index 222573b3a8..50fa07e7c9 100755
--- a/tool/enc-unicode.rb
+++ b/tool/enc-unicode.rb
@@ -14,8 +14,8 @@ if ARGV[0] == "--header"
header = true
ARGV.shift
end
-unless ARGV.size == 1
- abort "Usage: #{$0} data_directory"
+unless ARGV.size == 2
+ abort "Usage: #{$0} data_directory emoji_data_directory"
end
$unicode_version = File.basename(ARGV[0])[/\A[.\d]+\z/]
@@ -302,7 +302,7 @@ def constantize_blockname(name)
end
def get_file(name)
- File.join(ARGV[0], name)
+ File.join(ARGV[name.start_with?("emoji-") ? 1 : 0], name)
end
def data_foreach(name, &block)