make/java/java/genlocales.gmk

Print this page
rev 5696 : 6336885: RFE: Locale Data Deployment Enhancements
4609153: Provide locale data for Indic locales
5104387: Support for gl_ES locale (galician language)
6337471: desktop/system locale preferences support
7056139: (cal) SPI support for locale-dependent Calendar parameters
7058206: Provide CalendarData SPI for week params and display field value names
7073852: Support multiple scripts for digits and decimal symbols per locale
7079560: [Fmt-Da] Context dependent month names support in SimpleDateFormat
7171324: getAvailableLocales() of locale sensitive services should return the actual availability of locales
7151414: (cal) Support calendar type identification
7168528: LocaleServiceProvider needs to be aware of Locale extensions
7171372: (cal) locale's default Calendar should be created if unknown calendar is specified
Summary: JEP 127: Improve Locale Data Packaging and Adopt Unicode CLDR Data (part 1 w/o packaging changes. by Naoto Sato and Masayoshi Okutsu)


  51 
  52 include $(BUILDDIR)/java/text/base/FILES_java.gmk
  53 
  54 Euro_Resources_java += $(FILES_java)
  55 
  56 FILES_compiled_properties=
  57 
  58 # $(BUILDDIR)/sun/text/FILES_java.gmk & $(BUILDDIR)/sun/text/FILES_properties.gmk
  59 # contain both resources for Non-European language support
  60 
  61 include $(BUILDDIR)/sun/text/FILES_java.gmk
  62 include $(BUILDDIR)/sun/text/FILES_properties.gmk
  63 
  64 NonEuro_Resources_java := $(FILES_java)
  65 NonEuro_Resources_properties := $(FILES_compiled_properties)
  66 
  67 # Restore the orignal FILES_java & FILES_compiled_properties variables
  68 FILES_java := $(FILES_java_orig)
  69 FILES_compiled_properties := $(FILES_compiled_properties_orig)
  70 
  71 LocaleDataMetaInfo_Src=$(SHARE_SRC)/classes/sun/util/LocaleDataMetaInfo-XLocales.java.template
  72 LocaleDataMetaInfo_Dest=$(GENSRCDIR)/sun/util/LocaleDataMetaInfo.java
  73 LOCALEGEN_SH=localegen.sh
  74 RESOURCE_NAMES="FormatData CollationData TimeZoneNames LocaleNames CurrencyNames CalendarData"
  75 
  76 
  77 # On MacOSX sed does not enter a newline as it does on other platforms with the same pattern
  78 # Using awk instead
  79 
  80 ifeq ($(PLATFORM), macosx)
  81 
  82 $(LocaleDataMetaInfo_Dest):$(LocaleDataMetaInfo_Src) $(LOCALEGEN_SH)
  83         @$(RM) $@.tmp.euro $@.tmp.noneuro;
  84         @$(prep-target) 
  85         @$(ECHO) $(Euro_Resources_properties) | $(NAWK) 'gsub(/.properties/,"\n") {print}'  > $@.tmp.euro;
  86         @$(ECHO) $(Euro_Resources_java) | $(NAWK) 'gsub(/.java/,"\n") {print}' >> $@.tmp.euro;
  87         @$(ECHO) $(NonEuro_Resources_properties) | $(NAWK) 'gsub(/.properties/,"\n") {print}' > $@.tmp.noneuro;
  88         @$(ECHO) $(NonEuro_Resources_java) | $(NAWK) 'gsub(/.java/,"\n") {print}' >> $@.tmp.noneuro;
  89         NAWK="$(NAWK)" SED="$(SED)" SORT="$(SORT)" \
  90              $(SH) $(LOCALEGEN_SH) $(RESOURCE_NAMES) $@.tmp.euro \
  91                 $@.tmp.noneuro $< $@
  92         @$(RM) $@.tmp.euro $@.tmp.noneuro;




  51 
  52 include $(BUILDDIR)/java/text/base/FILES_java.gmk
  53 
  54 Euro_Resources_java += $(FILES_java)
  55 
  56 FILES_compiled_properties=
  57 
  58 # $(BUILDDIR)/sun/text/FILES_java.gmk & $(BUILDDIR)/sun/text/FILES_properties.gmk
  59 # contain both resources for Non-European language support
  60 
  61 include $(BUILDDIR)/sun/text/FILES_java.gmk
  62 include $(BUILDDIR)/sun/text/FILES_properties.gmk
  63 
  64 NonEuro_Resources_java := $(FILES_java)
  65 NonEuro_Resources_properties := $(FILES_compiled_properties)
  66 
  67 # Restore the orignal FILES_java & FILES_compiled_properties variables
  68 FILES_java := $(FILES_java_orig)
  69 FILES_compiled_properties := $(FILES_compiled_properties_orig)
  70 
  71 LocaleDataMetaInfo_Src=$(SHARE_SRC)/classes/sun/util/locale/provider/LocaleDataMetaInfo-XLocales.java.template
  72 LocaleDataMetaInfo_Dest=$(GENSRCDIR)/sun/util/locale/provider/LocaleDataMetaInfo.java
  73 LOCALEGEN_SH=localegen.sh
  74 RESOURCE_NAMES="FormatData CollationData TimeZoneNames LocaleNames CurrencyNames CalendarData"
  75 
  76 
  77 # On MacOSX sed does not enter a newline as it does on other platforms with the same pattern
  78 # Using awk instead
  79 
  80 ifeq ($(PLATFORM), macosx)
  81 
  82 $(LocaleDataMetaInfo_Dest):$(LocaleDataMetaInfo_Src) $(LOCALEGEN_SH)
  83         @$(RM) $@.tmp.euro $@.tmp.noneuro;
  84         @$(prep-target) 
  85         @$(ECHO) $(Euro_Resources_properties) | $(NAWK) 'gsub(/.properties/,"\n") {print}'  > $@.tmp.euro;
  86         @$(ECHO) $(Euro_Resources_java) | $(NAWK) 'gsub(/.java/,"\n") {print}' >> $@.tmp.euro;
  87         @$(ECHO) $(NonEuro_Resources_properties) | $(NAWK) 'gsub(/.properties/,"\n") {print}' > $@.tmp.noneuro;
  88         @$(ECHO) $(NonEuro_Resources_java) | $(NAWK) 'gsub(/.java/,"\n") {print}' >> $@.tmp.noneuro;
  89         NAWK="$(NAWK)" SED="$(SED)" SORT="$(SORT)" \
  90              $(SH) $(LOCALEGEN_SH) $(RESOURCE_NAMES) $@.tmp.euro \
  91                 $@.tmp.noneuro $< $@
  92         @$(RM) $@.tmp.euro $@.tmp.noneuro;