[前][次][番号順一覧][スレッド一覧]

ruby-changes:43412

From: nobu <ko1@a...>
Date: Wed, 22 Jun 2016 17:29:30 +0900 (JST)
Subject: [ruby-changes:43412] nobu:r55486 (trunk): Get rid of downloading Unicode data

nobu	2016-06-22 17:29:25 +0900 (Wed, 22 Jun 2016)

  New Revision: 55486

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55486

  Log:
    Get rid of downloading Unicode data
    
    * common.mk (lib/unicode_normalize/tables.rb): should not depend
      on Unicode data files unless ALWAYS_UPDATE_UNICODE=yes, to get
      rid of downloading Unicode data unnecessary.  [ruby-dev:49681]

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55485)
+++ ChangeLog	(revision 55486)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun 22 17:29:23 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* common.mk (lib/unicode_normalize/tables.rb): should not depend
+	  on Unicode data files unless ALWAYS_UPDATE_UNICODE=yes, to get
+	  rid of downloading Unicode data unnecessary.  [ruby-dev:49681]
+
 Tue Jun 21 19:44:54 2016  Martin Duerst  <duerst@i...>
 
 	* test/ruby/enc/test_regex_casefold.rb: Add Windows-1251, KOI8-R, and
Index: common.mk
===================================================================
--- common.mk	(revision 55485)
+++ common.mk	(revision 55486)
@@ -1051,9 +1051,11 @@ $(UNICODE_FILES): https://github.com/ruby/ruby/blob/trunk/common.mk#L1051
 $(srcdir)/$(HAVE_BASERUBY:yes=lib/unicode_normalize/tables.rb): \
 	$(srcdir)/.unicode-tables.time
 
+$(srcdir)/$(ALWAYS_UPDATE_UNICODE:yes=.unicode-tables.time): $(UNICODE_FILES)
+
 $(srcdir)/.unicode-tables.time: $(srcdir)/tool/generic_erb.rb \
-		$(UNICODE_FILES) \
 		$(srcdir)/template/unicode_norm_gen.tmpl
+	$(Q) $(ALWAYS_UPDATE_UNICODE:yes=exit &&) $(MAKE) $(MFLAGS) Q=$(Q) update-unicode
 	$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb \
 		-c -t$@ -o $(srcdir)/lib/unicode_normalize/tables.rb \
 		-I $(srcdir) \

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]