b454726096
Provide a way to ask for an opaque version string for a locale_t, so that potential changes in sort order can be detected. Similar to ICU's ucol_getVersion() and Windows' GetNLSVersionEx(), this API is intended to allow databases to detect when text order-based indexes might need to be rebuilt. The CLDR version is extracted from CLDR source data by the Makefile under tools/tools/locale, written into the machine-generated Makefile under shared/colldef, passed to localedef -V, and then written into LC_COLLATE file headers. The initial version is 34.0. tools/tools/locale was recently updated to pull down 35.0, but the output hasn't been committed under share/colldef yet, so that will provide the first observable change when it happens. Other versioning schemes are possible in future, because the format is unspecified. Reviewed by: bapt, 0mp, kib, yuripv (albeit a long time ago) Differential Revision: https://reviews.freebsd.org/D17166
239 lines
7.7 KiB
Makefile
239 lines
7.7 KiB
Makefile
# $FreeBSD$
|
|
# Warning: Do not edit. This file is automatically generated from the
|
|
# tools in /usr/src/tools/tools/locale.
|
|
|
|
LOCALEDIR= ${SHAREDIR}/locale
|
|
FILESNAME= LC_COLLATE
|
|
.SUFFIXES: .src .LC_COLLATE
|
|
MAPLOC= ${.CURDIR}/../../tools/tools/locale/etc/final-maps
|
|
|
|
CLDR_VERSION= "34.0"
|
|
|
|
.include <bsd.endian.mk>
|
|
|
|
.src.LC_COLLATE:
|
|
localedef ${LOCALEDEF_ENDIAN} -D -U -i ${.IMPSRC} \
|
|
-V ${CLDR_VERSION} \
|
|
-f ${MAPLOC}/map.${.TARGET:T:R:E:C/@.*//} ${.OBJDIR}/${.IMPSRC:T:R}
|
|
|
|
LOCALES+= af_ZA.UTF-8
|
|
LOCALES+= am_ET.UTF-8
|
|
LOCALES+= ar_SA.UTF-8
|
|
LOCALES+= be_BY.UTF-8
|
|
LOCALES+= ca_AD.UTF-8
|
|
LOCALES+= cs_CZ.UTF-8
|
|
LOCALES+= da_DK.UTF-8
|
|
LOCALES+= el_GR.UTF-8
|
|
LOCALES+= en_US.UTF-8
|
|
LOCALES+= es_MX.UTF-8
|
|
LOCALES+= et_EE.UTF-8
|
|
LOCALES+= fi_FI.UTF-8
|
|
LOCALES+= fr_CA.UTF-8
|
|
LOCALES+= he_IL.UTF-8
|
|
LOCALES+= hi_IN.UTF-8
|
|
LOCALES+= hu_HU.UTF-8
|
|
LOCALES+= hy_AM.UTF-8
|
|
LOCALES+= is_IS.UTF-8
|
|
LOCALES+= ja_JP.UTF-8
|
|
LOCALES+= kk_KZ.UTF-8
|
|
LOCALES+= ko_KR.UTF-8
|
|
LOCALES+= lt_LT.UTF-8
|
|
LOCALES+= lv_LV.UTF-8
|
|
LOCALES+= nn_NO.UTF-8
|
|
LOCALES+= pl_PL.UTF-8
|
|
LOCALES+= ro_RO.UTF-8
|
|
LOCALES+= ru_RU.UTF-8
|
|
LOCALES+= se_NO.UTF-8
|
|
LOCALES+= sk_SK.UTF-8
|
|
LOCALES+= sl_SI.UTF-8
|
|
LOCALES+= sr_RS.UTF-8
|
|
LOCALES+= sr_RS.UTF-8@latin
|
|
LOCALES+= sv_SE.UTF-8
|
|
LOCALES+= tr_TR.UTF-8
|
|
LOCALES+= uk_UA.UTF-8
|
|
LOCALES+= zh_CN.UTF-8
|
|
LOCALES+= zh_TW.UTF-8
|
|
|
|
LOCALES_MAPPED+= af_ZA.UTF-8 af_ZA.ISO8859-15
|
|
LOCALES_MAPPED+= af_ZA.UTF-8 af_ZA.ISO8859-1
|
|
LOCALES_MAPPED+= be_BY.UTF-8 be_BY.ISO8859-5
|
|
LOCALES_MAPPED+= be_BY.UTF-8 be_BY.CP1251
|
|
LOCALES_MAPPED+= be_BY.UTF-8 be_BY.CP1131
|
|
LOCALES_MAPPED+= ru_RU.UTF-8 ru_RU.KOI8-R
|
|
LOCALES_MAPPED+= ru_RU.UTF-8 ru_RU.ISO8859-5
|
|
LOCALES_MAPPED+= ru_RU.UTF-8 ru_RU.CP866
|
|
LOCALES_MAPPED+= ru_RU.UTF-8 ru_RU.CP1251
|
|
LOCALES_MAPPED+= ru_RU.UTF-8 bg_BG.CP1251
|
|
LOCALES_MAPPED+= ca_AD.UTF-8 ca_IT.ISO8859-15
|
|
LOCALES_MAPPED+= ca_AD.UTF-8 ca_IT.ISO8859-1
|
|
LOCALES_MAPPED+= ca_AD.UTF-8 ca_FR.ISO8859-15
|
|
LOCALES_MAPPED+= ca_AD.UTF-8 ca_FR.ISO8859-1
|
|
LOCALES_MAPPED+= ca_AD.UTF-8 ca_ES.ISO8859-15
|
|
LOCALES_MAPPED+= ca_AD.UTF-8 ca_ES.ISO8859-1
|
|
LOCALES_MAPPED+= ca_AD.UTF-8 ca_AD.ISO8859-15
|
|
LOCALES_MAPPED+= ca_AD.UTF-8 ca_AD.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 pt_PT.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 pt_PT.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 pt_BR.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 nl_NL.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 nl_NL.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 nl_BE.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 nl_BE.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 it_IT.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 it_IT.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 it_CH.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 it_CH.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 fr_FR.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 fr_FR.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 fr_CH.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 fr_CH.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 fr_BE.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 fr_BE.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 eu_ES.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 eu_ES.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_ZA.US-ASCII
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_ZA.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_ZA.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_US.US-ASCII
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_US.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_US.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_SG.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_NZ.US-ASCII
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_NZ.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_NZ.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_IE.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_IE.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_HK.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_GB.US-ASCII
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_GB.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_GB.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_CA.US-ASCII
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_CA.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_CA.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_AU.US-ASCII
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_AU.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 en_AU.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 de_DE.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 de_DE.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 de_CH.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 de_CH.ISO8859-1
|
|
LOCALES_MAPPED+= en_US.UTF-8 de_AT.ISO8859-15
|
|
LOCALES_MAPPED+= en_US.UTF-8 de_AT.ISO8859-1
|
|
LOCALES_MAPPED+= el_GR.UTF-8 el_GR.ISO8859-7
|
|
LOCALES_MAPPED+= es_MX.UTF-8 es_MX.ISO8859-1
|
|
LOCALES_MAPPED+= es_MX.UTF-8 es_ES.ISO8859-15
|
|
LOCALES_MAPPED+= es_MX.UTF-8 es_ES.ISO8859-1
|
|
LOCALES_MAPPED+= es_MX.UTF-8 es_AR.ISO8859-1
|
|
LOCALES_MAPPED+= et_EE.UTF-8 et_EE.ISO8859-15
|
|
LOCALES_MAPPED+= et_EE.UTF-8 et_EE.ISO8859-1
|
|
LOCALES_MAPPED+= fi_FI.UTF-8 fi_FI.ISO8859-15
|
|
LOCALES_MAPPED+= fi_FI.UTF-8 fi_FI.ISO8859-1
|
|
LOCALES_MAPPED+= fr_CA.UTF-8 fr_CA.ISO8859-15
|
|
LOCALES_MAPPED+= fr_CA.UTF-8 fr_CA.ISO8859-1
|
|
LOCALES_MAPPED+= hi_IN.UTF-8 hi_IN.ISCII-DEV
|
|
LOCALES_MAPPED+= sr_RS.UTF-8@latin hr_HR.UTF-8
|
|
LOCALES_MAPPED+= hy_AM.UTF-8 hy_AM.ARMSCII-8
|
|
LOCALES_MAPPED+= is_IS.UTF-8 is_IS.ISO8859-15
|
|
LOCALES_MAPPED+= is_IS.UTF-8 is_IS.ISO8859-1
|
|
LOCALES_MAPPED+= ja_JP.UTF-8 ja_JP.SJIS
|
|
LOCALES_MAPPED+= ko_KR.UTF-8 ko_KR.eucKR
|
|
LOCALES_MAPPED+= lt_LT.UTF-8 lt_LT.ISO8859-13
|
|
LOCALES_MAPPED+= lv_LV.UTF-8 lv_LV.ISO8859-13
|
|
LOCALES_MAPPED+= pl_PL.UTF-8 pl_PL.ISO8859-2
|
|
LOCALES_MAPPED+= ro_RO.UTF-8 ro_RO.ISO8859-2
|
|
LOCALES_MAPPED+= sl_SI.UTF-8 sl_SI.ISO8859-2
|
|
LOCALES_MAPPED+= sv_SE.UTF-8 sv_SE.ISO8859-15
|
|
LOCALES_MAPPED+= sv_SE.UTF-8 sv_SE.ISO8859-1
|
|
LOCALES_MAPPED+= sv_SE.UTF-8 sv_FI.ISO8859-15
|
|
LOCALES_MAPPED+= sv_SE.UTF-8 sv_FI.ISO8859-1
|
|
LOCALES_MAPPED+= tr_TR.UTF-8 tr_TR.ISO8859-9
|
|
LOCALES_MAPPED+= uk_UA.UTF-8 uk_UA.KOI8-U
|
|
LOCALES_MAPPED+= uk_UA.UTF-8 uk_UA.ISO8859-5
|
|
LOCALES_MAPPED+= uk_UA.UTF-8 uk_UA.CP1251
|
|
|
|
LOCALES+= cs_CZ.ISO8859-2
|
|
LOCALES+= da_DK.ISO8859-1
|
|
LOCALES+= da_DK.ISO8859-15
|
|
LOCALES+= hr_HR.ISO8859-2
|
|
LOCALES+= hu_HU.ISO8859-2
|
|
LOCALES+= nb_NO.ISO8859-1
|
|
LOCALES+= nb_NO.ISO8859-15
|
|
LOCALES+= sk_SK.ISO8859-2
|
|
LOCALES+= sr_RS.ISO8859-2
|
|
LOCALES+= sr_RS.ISO8859-5
|
|
LOCALES+= zh_CN.GB2312
|
|
LOCALES+= zh_CN.eucCN
|
|
LOCALES+= zh_TW.Big5
|
|
LOCALES+= zh_CN.GB18030
|
|
LOCALES+= zh_CN.GBK
|
|
LOCALES+= ja_JP.eucJP
|
|
LOCALES+= nn_NO.ISO8859-15
|
|
LOCALES+= nn_NO.ISO8859-1
|
|
|
|
|
|
SAME+= ar_SA.UTF-8 ar_QA.UTF-8
|
|
SAME+= ar_SA.UTF-8 ar_MA.UTF-8
|
|
SAME+= ar_SA.UTF-8 ar_JO.UTF-8
|
|
SAME+= ar_SA.UTF-8 ar_EG.UTF-8
|
|
SAME+= ar_SA.UTF-8 ar_AE.UTF-8
|
|
SAME+= ru_RU.UTF-8 mn_MN.UTF-8
|
|
SAME+= ru_RU.UTF-8 bg_BG.UTF-8
|
|
SAME+= ca_AD.UTF-8 ca_IT.UTF-8
|
|
SAME+= ca_AD.UTF-8 ca_FR.UTF-8
|
|
SAME+= ca_AD.UTF-8 ca_ES.UTF-8
|
|
SAME+= en_US.UTF-8 pt_PT.UTF-8
|
|
SAME+= en_US.UTF-8 pt_BR.UTF-8
|
|
SAME+= en_US.UTF-8 nl_NL.UTF-8
|
|
SAME+= en_US.UTF-8 nl_BE.UTF-8
|
|
SAME+= en_US.UTF-8 it_IT.UTF-8
|
|
SAME+= en_US.UTF-8 it_CH.UTF-8
|
|
SAME+= en_US.UTF-8 ga_IE.UTF-8
|
|
SAME+= en_US.UTF-8 fr_FR.UTF-8
|
|
SAME+= en_US.UTF-8 fr_CH.UTF-8
|
|
SAME+= en_US.UTF-8 fr_BE.UTF-8
|
|
SAME+= en_US.UTF-8 eu_ES.UTF-8
|
|
SAME+= en_US.UTF-8 en_ZA.UTF-8
|
|
SAME+= en_US.UTF-8 en_SG.UTF-8
|
|
SAME+= en_US.UTF-8 en_PH.UTF-8
|
|
SAME+= en_US.UTF-8 en_NZ.UTF-8
|
|
SAME+= en_US.UTF-8 en_IE.UTF-8
|
|
SAME+= en_US.UTF-8 en_HK.UTF-8
|
|
SAME+= en_US.UTF-8 en_GB.UTF-8
|
|
SAME+= en_US.UTF-8 en_CA.UTF-8
|
|
SAME+= en_US.UTF-8 en_AU.UTF-8
|
|
SAME+= en_US.UTF-8 de_DE.UTF-8
|
|
SAME+= en_US.UTF-8 de_CH.UTF-8
|
|
SAME+= en_US.UTF-8 de_AT.UTF-8
|
|
SAME+= es_MX.UTF-8 es_ES.UTF-8
|
|
SAME+= es_MX.UTF-8 es_CR.UTF-8
|
|
SAME+= es_MX.UTF-8 es_AR.UTF-8
|
|
SAME+= nn_NO.UTF-8 nb_NO.UTF-8
|
|
SAME+= se_NO.UTF-8 se_FI.UTF-8
|
|
SAME+= sv_SE.UTF-8 sv_FI.UTF-8
|
|
SAME+= zh_TW.UTF-8 zh_HK.UTF-8
|
|
SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset)
|
|
|
|
FILES= ${LOCALES:S/$/.LC_COLLATE/}
|
|
CLEANFILES= ${FILES}
|
|
|
|
.for f t in ${SAME}
|
|
SYMLINKS+= ../$f/${FILESNAME} \
|
|
${LOCALEDIR}/$t/${FILESNAME}
|
|
.endfor
|
|
|
|
.for f in ${LOCALES}
|
|
FILESDIR_${f}.LC_COLLATE= ${LOCALEDIR}/${f}
|
|
.endfor
|
|
|
|
.for f t in ${LOCALES_MAPPED}
|
|
FILES+= $t.LC_COLLATE
|
|
FILESDIR_$t.LC_COLLATE= ${LOCALEDIR}/$t
|
|
$t.LC_COLLATE: ${.CURDIR}/$f.src
|
|
localedef ${LOCALEDEF_ENDIAN} -D -U -i ${.ALLSRC} \
|
|
-V ${CLDR_VERSION} \
|
|
-f ${MAPLOC}/map.${.TARGET:T:R:E:C/@.*//} \
|
|
${.OBJDIR}/${.TARGET:T:R}
|
|
.endfor
|
|
|
|
.include <bsd.prog.mk>
|