mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
unicode_norm_gen.rb: get rid of hard coded paths
* common.mk (lib/unicode_normalize/tables.rb): run at top srcdir. * tool/unicode_norm_gen.rb: add -input and -output options to set InputDataDir and OuputDataDir respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f61265746e
commit
8b99ce9656
2 changed files with 6 additions and 5 deletions
|
@ -1098,9 +1098,10 @@ update-unicode: PHONY
|
|||
enc/unicode/data/UnicodeData.txt: update-unicode
|
||||
|
||||
lib/unicode_normalize/tables.rb: tool/unicode_norm_gen.rb \
|
||||
enc/unicode/data/UnicodeData.txt \
|
||||
enc/unicode/data/CompositionExclusions.txt
|
||||
$(BASERUBY) -C "$(srcdir)/tool" unicode_norm_gen.rb
|
||||
enc/unicode/data/UnicodeData.txt \
|
||||
enc/unicode/data/CompositionExclusions.txt
|
||||
$(BASERUBY) -s -C "$(srcdir)" tool/unicode_norm_gen.rb \
|
||||
-input=enc/unicode/data -ouput=lib/unicode_normalize
|
||||
|
||||
info: info-program info-libruby_a info-libruby_so info-arch
|
||||
info-program: PHONY
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
# String#unicode_normalize,...
|
||||
|
||||
# Constants for input and ouput directory
|
||||
InputDataDir = '../enc/unicode/data'
|
||||
OuputDataDir = '../lib/unicode_normalize'
|
||||
InputDataDir = $input || 'enc/unicode/data'
|
||||
OuputDataDir = $ouput || 'lib/unicode_normalize'
|
||||
|
||||
# convenience methods
|
||||
class Integer
|
||||
|
|
Loading…
Add table
Reference in a new issue