make/gensrc/GensrcLocaleData.gmk
changeset 54380 e297c7bb6469
parent 52804 28094715ae71
equal deleted inserted replaced
54379:40a7e2fc9beb 54380:e297c7bb6469
     1 #
     1 #
     2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    26 # Scan for all locale resources and extract for which locales there exists
    26 # Scan for all locale resources and extract for which locales there exists
    27 # resources. Then put this meta information about existing (supported?) locales
    27 # resources. Then put this meta information about existing (supported?) locales
    28 # into LocaleDataMetaInfo.java
    28 # into LocaleDataMetaInfo.java
    29 
    29 
    30 # First go look for all locale files
    30 # First go look for all locale files
    31 LOCALE_FILES := $(shell $(FIND) \
    31 LOCALE_FILES := $(call FindFiles, \
    32     $(TOPDIR)/src/$(MODULE)/share/classes/sun/text/resources \
    32     $(TOPDIR)/src/$(MODULE)/share/classes/sun/text/resources \
    33     $(TOPDIR)/src/$(MODULE)/share/classes/sun/util/resources \
    33     $(TOPDIR)/src/$(MODULE)/share/classes/sun/util/resources, \
    34     -name "FormatData_*.java" -o -name "FormatData_*.properties" -o \
    34     FormatData_*.java FormatData_*.properties \
    35     -name "CollationData_*.java" -o -name "CollationData_*.properties" -o \
    35     CollationData_*.java CollationData_*.properties \
    36     -name "TimeZoneNames_*.java" -o -name "TimeZoneNames_*.properties" -o \
    36     TimeZoneNames_*.java TimeZoneNames_*.properties \
    37     -name "LocaleNames_*.java" -o -name "LocaleNames_*.properties" -o \
    37     LocaleNames_*.java LocaleNames_*.properties \
    38     -name "CurrencyNames_*.java" -o -name "CurrencyNames_*.properties" -o \
    38     CurrencyNames_*.java CurrencyNames_*.properties \
    39     -name "CalendarData_*.java" -o -name "CalendarData_*.properties" -o \
    39     CalendarData_*.java CalendarData_*.properties \
    40     -name "BreakIteratorInfo_*.java" -o -name "BreakIteratorRules_*.java")
    40     BreakIteratorInfo_*.java BreakIteratorRules_*.java)
    41 
    41 
    42 # Then translate the locale files into for example: FormatData_sv
    42 # Then translate the locale files into for example: FormatData_sv
    43 LOCALE_RESOURCES := $(sort $(subst .properties,,$(subst .java,,$(notdir $(LOCALE_FILES)))))
    43 LOCALE_RESOURCES := $(sort $(subst .properties,,$(subst .java,,$(notdir $(LOCALE_FILES)))))
    44 
    44 
    45 # Include the list of resources found during the previous compile.
    45 # Include the list of resources found during the previous compile.