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\ 60 sv_SE.ISO8859-1 \ 61 tr_TR.ISO8859-9 \ 62 uk_UA.CP1251 \ 63 uk_UA.ISO8859-5 \ 64 uk_UA.KOI8-U \ 65 uk_UA.UTF-8 \ 66 zh_CN.eucCN \ 67 zh_CN.GB18030 \ 68 zh_CN.GB2312 \ 69 zh_CN.UTF-8 \ 70 zh_TW.Big5 \ 71 zh_TW.UTF-8 72 73LOCALEDIR= /usr/share/locale 74 75.SUFFIXES: .src .out 76 77.src.out: 78 grep -v '^#' < ${.IMPSRC} > ${.TARGET} 79 80FILES= ${LOCALES:S/$/.out/} 81FILESNAME= LC_MESSAGES 82 83.for locale in ${LOCALES} 84FILESDIR_${locale}.out= ${LOCALEDIR}/${locale} 85.endfor 86 87CLEANFILES= ${FILES} 88 89CA_LINKS= ca_ES:ca_AD ca_ES:ca_FR ca_ES:ca_IT 90CZ_LINKS= cs_CZ:sk_SK 91DE_LINKS= de_DE:de_AT de_DE:de_CH 92FR_LINKS= fr_FR:fr_CA 93GB_LINKS= en_GB:en_AU en_GB:en_NZ 94IT_LINKS= it_IT:it_CH 95NL_LINKS= nl_NL:nl_BE 96NO_LINKS= no_NO:nb_NO no_NO:nn_NO 97PT_LINKS= pt_PT:pt_BR 98 99ENCODINGS= Big5 Big5HKSCS CP949 eucKR GB2312 GBK \ 100 ISO8859-1 ISO8859-2 ISO8859-4 ISO8859-9 ISO8859-13 ISO8859-15 \ 101 US-ASCII UTF-8 102 103Big5_Big5HKSCS= zh_TW:zh_HK 104eucKR_CP949= ko_KR 105GB2312_GBK= zh_CN 106ISO8859-1_ISO8859-1= ${CA_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} \ 107 ${IT_LINKS} ${NL_LINKS} ${NO_LINKS} ${PT_LINKS} 108ISO8859-1_ISO8859-15= af_ZA ca_ES da_DK de_DE en_CA en_GB en_US es_ES \ 109 eu_ES fi_FI fr_BE fr_CH fr_FR is_IS it_IT nl_NL no_NO \ 110 pt_PT sv_SE \ 111 ${CA_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} ${IT_LINKS} \ 112 ${NL_LINKS} ${NO_LINKS} 113ISO8859-1_US-ASCII= ${GB_LINKS} en_CA en_GB en_US 114ISO8859-1_UTF-8= af_ZA ca_ES da_DK de_DE en_CA en_GB en_US es_ES eu_ES \ 115 fi_FI fr_BE fr_CH fr_FR is_IS it_IT nb_NO nl_NL nn_NO no_NO \ 116 pt_PT sv_SE 117ISO8859-2_ISO8859-2= ${CZ_LINKS} 118ISO8859-2_UTF-8= cs_CZ hr_HR hu_HU pl_PL ro_RO sl_SI 119ISO8859-9_UTF-8= tr_TR 120ISO8859-13_ISO8859-4= lt_LT 121ISO8859-13_UTF-8= lt_LT 122ISO8859-15_UTF-8= et_EE 123UTF-8_UTF-8= ${CA_LINKS} ${CZ_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} \ 124 en_GB:en_IE \ 125 ${IT_LINKS} ${NL_LINKS} ${NO_LINKS} ${PT_LINKS} zh_TW:zh_HK 126 127SYMLINKS= 128.for enc1 in ${ENCODINGS} 129.for enc2 in ${ENCODINGS} 130.for lang_terr in ${${enc1}_${enc2}} 131SYMLINKS+= ../${lang_terr:C/:.*$//}.${enc1}/${FILESNAME} \ 132 ${LOCALEDIR}/${lang_terr:C/^.*://}.${enc2} 133.endfor 134.endfor 135.endfor 136 137beforeinstall: 138.for locale in ${LOCALES} 139.if exists(${DESTDIR}${LOCALEDIR}/${locale}/LC_MESSAGES/) 140 rm -rf ${DESTDIR}${LOCALEDIR}/${locale}/LC_MESSAGES 141.endif 142.endfor 143 144.include <bsd.prog.mk> 145