mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
common.mk: update enc/unicode/name2ctype.h
* Makefile.in (enc/unicode/name2ctype.h): remove stale recipe, which did not support Unicode age properties. * common.mk (enc/unicode/name2ctype.h): update by --header option of tool/enc-unicode.rb. enc/unicode/name2ctype.kwd file has not been used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5de227d638
commit
2f87f9e63b
6 changed files with 19 additions and 85806 deletions
|
@ -1,4 +1,11 @@
|
|||
Thu Jul 14 13:42:48 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Jul 14 17:26:00 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* Makefile.in (enc/unicode/name2ctype.h): remove stale recipe,
|
||||
which did not support Unicode age properties.
|
||||
|
||||
* common.mk (enc/unicode/name2ctype.h): update by --header option
|
||||
of tool/enc-unicode.rb. enc/unicode/name2ctype.kwd file has not
|
||||
been used.
|
||||
|
||||
* common.mk (enc/unicode/name2ctype.kwd): rule to create from
|
||||
Unicode data files, used only when the target does not exist.
|
||||
|
|
22
Makefile.in
22
Makefile.in
|
@ -342,28 +342,6 @@ lex.c: defs/keywords
|
|||
$(CP) $@ $(srcdir)/lex.c.blt; \
|
||||
fi
|
||||
|
||||
NAME2CTYPE_OPTIONS = -7 -c -j1 -i1 -t -C -P -T -H uniname2ctype_hash -Q uniname2ctype_pool -N uniname2ctype_p
|
||||
|
||||
$(srcdir)/enc/unicode/$(NAME2CTYPE_KWD)name2ctype.kwd:
|
||||
[ -f $@ ] || $(MAKE) NAME2CTYPE_KWD=$(@F) $@
|
||||
|
||||
enc/unicode/name2ctype.h: enc/unicode/name2ctype.kwd
|
||||
$(MAKEDIRS) $(@D)
|
||||
@set +e; \
|
||||
if cmp -s $(?:.kwd=.src) $?; then \
|
||||
set -x; \
|
||||
$(CP) $(?:.kwd=.h.blt) $@; \
|
||||
else \
|
||||
trap '$(RM) $@-1.h $@-2.h' 0 && \
|
||||
set -x; \
|
||||
sed '/^#ifdef USE_UNICODE_PROPERTIES/,/^#endif/d' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-1.h && \
|
||||
sed '/^#ifdef USE_UNICODE_PROPERTIES/d;/^#endif/d' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-2.h && \
|
||||
diff -DUSE_UNICODE_PROPERTIES $@-1.h $@-2.h > $@.tmp || :; \
|
||||
$(MV) $@.tmp $@ && \
|
||||
$(CP) $? $(?:.kwd=.src) && \
|
||||
$(CP) $@ $(?:.kwd=.h.blt); \
|
||||
fi
|
||||
|
||||
JIS_PROPS_OPTIONS = -k1,3 -7 -c -j1 -i1 -t -C -P -t --ignore-case -H onig_jis_property_hash -Q onig_jis_property_pool -N onig_jis_property
|
||||
|
||||
enc/jis/props.h: enc/jis/props.kwd
|
||||
|
|
15
common.mk
15
common.mk
|
@ -1044,6 +1044,7 @@ UNICODE_FILES = $(UNICODE_SRC_DATA_DIR)/UnicodeData.txt \
|
|||
$(empty)
|
||||
|
||||
UNICODE_PROPERTY_FILES = \
|
||||
$(UNICODE_SRC_DATA_DIR)/UnicodeData.txt \
|
||||
$(UNICODE_SRC_DATA_DIR)/Blocks.txt \
|
||||
$(UNICODE_SRC_DATA_DIR)/DerivedAge.txt \
|
||||
$(UNICODE_SRC_DATA_DIR)/DerivedCoreProperties.txt \
|
||||
|
@ -1061,12 +1062,12 @@ UNICODE_DOWNLOAD = \
|
|||
-p $(UNICODE_VERSION)/ucd \
|
||||
-e $(ALWAYS_UPDATE_UNICODE:yes=-a) unicode
|
||||
|
||||
$(UNICODE_PROPERTY_FILES):
|
||||
$(UNICODE_PROPERTY_FILES)::
|
||||
$(ECHO) Downloading Unicode $(UNICODE_VERSION) property files...
|
||||
$(Q) $(MAKEDIRS) "$(UNICODE_SRC_DATA_DIR)"
|
||||
$(Q) $(UNICODE_DOWNLOAD) $(UNICODE_PROPERTY_FILES)
|
||||
|
||||
$(UNICODE_FILES):
|
||||
$(UNICODE_FILES)::
|
||||
$(ECHO) Downloading Unicode $(UNICODE_VERSION) data files...
|
||||
$(Q) $(MAKEDIRS) "$(UNICODE_SRC_DATA_DIR)"
|
||||
$(Q) $(UNICODE_DOWNLOAD) $(UNICODE_FILES)
|
||||
|
@ -1085,9 +1086,15 @@ $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: $(srcdir)/tool/generic_erb.rb \
|
|||
$(srcdir)/template/unicode_norm_gen.tmpl \
|
||||
$(UNICODE_DATA_DIR) lib/unicode_normalize
|
||||
|
||||
$(srcdir)/enc/unicode/$(NAME2CTYPE_KWD): $(UNICODE_SRC_DATA_DIR)/UnicodeData.txt $(UNICODE_PROPERTY_FILES)
|
||||
# UPDATE_NAME2CTYPE= : toplevel
|
||||
# UPDATE_NAME2CTYPE=yes : sub-make to update name2ctype.h
|
||||
$(srcdir)/enc/unicode/$(UPDATE_NAME2CTYPE:yes=.ignore.)name2ctype.h:
|
||||
$(MAKE) UPDATE_NAME2CTYPE=yes $@
|
||||
|
||||
$(srcdir)/enc/unicode/$(UPDATE_NAME2CTYPE:yes=name2ctype.h): \
|
||||
$(UNICODE_PROPERTY_FILES)
|
||||
$(MAKEDIRS) $(@D)
|
||||
$(BOOTSTRAPRUBY) $(srcdir)/tool/enc-unicode.rb $(UNICODE_SRC_DATA_DIR) > $@
|
||||
$(BOOTSTRAPRUBY) $(srcdir)/tool/enc-unicode.rb --header $(UNICODE_SRC_DATA_DIR) > $@
|
||||
|
||||
# the next non-comment line was:
|
||||
# $(srcdir)/enc/unicode/casefold.h: $(srcdir)/enc/unicode/case-folding.rb \
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue