ruby-changes:41655
From: duerst <ko1@a...>
Date: Thu, 4 Feb 2016 11:54:05 +0900 (JST)
Subject: [ruby-changes:41655] duerst:r53728 (trunk): * common.mk: Introduce two variables (UNICODE_DATA_DIR and
duerst 2016-02-04 11:54:02 +0900 (Thu, 04 Feb 2016) New Revision: 53728 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53728 Log: * common.mk: Introduce two variables (UNICODE_DATA_DIR and UNICODE_SRC_DATA_DIR) to eliminate repetitions. Modified files: trunk/ChangeLog trunk/common.mk Index: ChangeLog =================================================================== --- ChangeLog (revision 53727) +++ ChangeLog (revision 53728) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Feb 4 11:53:56 2016 Martin Duerst <duerst@i...> + + * common.mk: Introduce two variables (UNICODE_DATA_DIR and + UNICODE_SRC_DATA_DIR) to eliminate repetitions. + Wed Feb 3 12:13:20 2016 NARUSE, Yui <naruse@r...> * string.c (str_new_frozen): if the given string is embeddedable Index: common.mk =================================================================== --- common.mk (revision 53727) +++ common.mk (revision 53728) @@ -1014,19 +1014,21 @@ update-bundled_gems: PHONY https://github.com/ruby/ruby/blob/trunk/common.mk#L1014 ### set the following environment variable or uncomment the line if ### the Unicode data files should be updated completely on every update ('make up',...). # ALWAYS_UPDATE_UNICODE = yes +UNICODE_DATA_DIR = enc/unicode/data/$(UNICODE_VERSION) +UNICODE_SRC_DATA_DIR = $(srcdir)/$(UNICODE_DATA_DIR) -UNICODE_FILES = $(srcdir)/enc/unicode/data/$(UNICODE_VERSION)/UnicodeData.txt \ - $(srcdir)/enc/unicode/data/$(UNICODE_VERSION)/CompositionExclusions.txt \ - $(srcdir)/enc/unicode/data/$(UNICODE_VERSION)/NormalizationTest.txt \ - $(srcdir)/enc/unicode/data/$(UNICODE_VERSION)/CaseFolding.txt +UNICODE_FILES = $(UNICODE_SRC_DATA_DIR)/UnicodeData.txt \ + $(UNICODE_SRC_DATA_DIR)/CompositionExclusions.txt \ + $(UNICODE_SRC_DATA_DIR)/NormalizationTest.txt \ + $(UNICODE_SRC_DATA_DIR)/CaseFolding.txt update-unicode: $(UNICODE_FILES) $(UNICODE_FILES): $(ECHO) Downloading Unicode $(UNICODE_VERSION) data files... - $(Q) $(MAKEDIRS) "$(srcdir)/enc/unicode/data/$(UNICODE_VERSION)" + $(Q) $(MAKEDIRS) "$(UNICODE_SRC_DATA_DIR)" $(Q) $(BASERUBY) -C "$(srcdir)" tool/downloader.rb \ - -d enc/unicode/data/$(UNICODE_VERSION) \ + -d $(UNICODE_DATA_DIR) \ -p $(UNICODE_VERSION)/ucd \ -e $(ALWAYS_UPDATE_UNICODE:yes=-a) unicode \ $(UNICODE_FILES) @@ -1041,7 +1043,7 @@ $(srcdir)/.unicode-tables.time: $(srcdir https://github.com/ruby/ruby/blob/trunk/common.mk#L1043 -c -t$@ -o $(srcdir)/lib/unicode_normalize/tables.rb \ -I $(srcdir) \ $(srcdir)/template/unicode_norm_gen.tmpl \ - enc/unicode/data/$(UNICODE_VERSION) lib/unicode_normalize + $(UNICODE_DATA_DIR) lib/unicode_normalize download-extlibs: $(Q) $(BASERUBY) -C $(srcdir) -w tool/extlibs.rb --download ext -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/