1# $FreeBSD$ 2 3NOMAN=YES 4CLEANFILES+= ${LOCALES:S/$/.out/g} 5 6LOCALES= af_ZA.ISO8859-1 \ 7 am_ET.UTF-8 \ 8 be_BY.CP1251 \ 9 bg_BG.CP1251 \ 10 ca_ES.ISO8859-1 \ 11 cs_CZ.ISO8859-2 \ 12 da_DK.ISO8859-1 \ 13 de_DE.ISO8859-1 \ 14 el_GR.ISO8859-7 \ 15 en_US.ISO8859-1 \ 16 es_ES.ISO8859-1 \ 17 et_EE.ISO8859-15 \ 18 fi_FI.ISO8859-1 \ 19 fr_BE.ISO8859-1 \ 20 fr_FR.ISO8859-1 \ 21 hi_IN.ISCII-DEV \ 22 hr_HR.ISO8859-2 \ 23 hu_HU.ISO8859-2 \ 24 hy_AM.ARMSCII-8 \ 25 is_IS.ISO8859-1 \ 26 it_IT.ISO8859-1 \ 27 ja_JP.eucJP \ 28 kk_KZ.PT154 \ 29 ko_KR.eucKR \ 30 lt_LT.ISO8859-13 \ 31 nl_NL.ISO8859-1 \ 32 no_NO.ISO8859-1 \ 33 pl_PL.ISO8859-2 \ 34 pt_BR.ISO8859-1 \ 35 pt_PT.ISO8859-1 \ 36 ro_RO.ISO8859-2 \ 37 ru_RU.KOI8-R \ 38 sk_SK.ISO8859-2 \ 39 sl_SI.ISO8859-2 \ 40 sr_YU.ISO8859-2 \ 41 sr_YU.ISO8859-5 \ 42 sv_SE.ISO8859-1 \ 43 tr_TR.ISO8859-9 \ 44 uk_UA.KOI8-U \ 45 zh_CN.eucCN 46 47LOCALEDIR= ${DESTDIR}/usr/share/locale 48 49ASCIILINKS= en_US 50LATIN15LINKS= af_ZA ca_ES da_DK de_DE en_US es_ES fi_FI fr_BE fr_FR is_IS \ 51 it_CH it_IT nl_NL no_NO pt_PT sv_SE 52 53UTF8_LATIN1LINKS= af_ZA ca_ES da_DK de_DE en_US es_ES fi_FI fr_BE fr_FR \ 54 is_IS it_IT nl_NL no_NO pt_BR pt_PT sv_SE 55UTF8_LATIN2LINKS= cs_CZ hr_HR hu_HU pl_PL ro_RO sk_SK sl_SI 56UTF8_LATIN5LINKS= sr_YU uk_UA 57UTF8_LATIN7LINKS= el_GR 58UTF8_LATIN9LINKS= tr_TR 59UTF8_LATIN13LINKS= lt_LT 60UTF8_LATIN15LINKS= et_EE 61UTF8_ARMSCII8LINKS= hy_AM 62 63US_LINKS= en_CA en_GB 64GB_LINKS= en_AU en_NZ 65FR_LINKS= fr_CA fr_CH 66DE_LINKS= de_AT de_CH 67IT_LINKS= it_CH 68BE_LINKS= nl_BE 69RU_LINKS= ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 70UA_LINKS= uk_UA.ISO8859-5 71BY_LINKS= be_BY.CP1131 be_BY.ISO8859-5 72CN_LINKS= zh_CN.GB18030 zh_CN.GB2312 zh_CN.GBK zh_HK.Big5HKSCS zh_TW.Big5 73 74.SUFFIXES: .src .out 75 76.src.out: 77 grep -v '^#' < ${.IMPSRC} > ${.TARGET} 78 79all: ${LOCALES:S/$/.out/g} 80 81afterinstall: 82.for lang in ${LOCALES} 83 ${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} ${lang}.out \ 84 ${LOCALEDIR}/${lang}/LC_NUMERIC 85.endfor 86.for link in ${LATIN15LINKS} 87 ln -sf ../${link}.ISO8859-1/LC_NUMERIC \ 88 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 89.endfor 90.for link in ${US_LINKS} 91 ln -sf ../en_US.ISO8859-1/LC_NUMERIC \ 92 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 93 ln -sf ../en_US.ISO8859-1/LC_NUMERIC \ 94 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 95 ln -sf ../en_US.ISO8859-1/LC_NUMERIC \ 96 ${LOCALEDIR}/${link}.US-ASCII/LC_NUMERIC 97.endfor 98.for link in ${GB_LINKS} 99 ln -sf ../en_GB.ISO8859-1/LC_NUMERIC \ 100 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 101 ln -sf ../en_GB.ISO8859-1/LC_NUMERIC \ 102 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 103 ln -sf ../en_GB.ISO8859-1/LC_NUMERIC \ 104 ${LOCALEDIR}/${link}.US-ASCII/LC_NUMERIC 105.endfor 106.for link in ${FR_LINKS} 107 ln -sf ../fr_FR.ISO8859-1/LC_NUMERIC \ 108 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 109 ln -sf ../fr_FR.ISO8859-1/LC_NUMERIC \ 110 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 111.endfor 112.for link in ${DE_LINKS} 113 ln -sf ../de_DE.ISO8859-1/LC_NUMERIC \ 114 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 115 ln -sf ../de_DE.ISO8859-1/LC_NUMERIC \ 116 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 117.endfor 118.for link in ${IT_LINKS} 119 ln -sf ../it_IT.ISO8859-1/LC_NUMERIC \ 120 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 121 ln -sf ../it_IT.ISO8859-1/LC_NUMERIC \ 122 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 123.endfor 124.for link in ${BE_LINKS} 125 ln -sf ../fr_BE.ISO8859-1/LC_NUMERIC \ 126 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 127 ln -sf ../fr_BE.ISO8859-1/LC_NUMERIC \ 128 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 129.endfor 130.for link in ${RU_LINKS} 131 ln -sf ../ru_RU.KOI8-R/LC_NUMERIC \ 132 ${LOCALEDIR}/${link}/LC_NUMERIC 133.endfor 134.for link in ${BY_LINKS} 135 ln -sf ../be_BY.CP1251/LC_NUMERIC \ 136 ${LOCALEDIR}/${link}/LC_NUMERIC 137.endfor 138.for link in ${UA_LINKS} 139 ln -sf ../uk_UA.KOI8-U/LC_NUMERIC \ 140 ${LOCALEDIR}/${link}/LC_NUMERIC 141.endfor 142.for link in ${CN_LINKS} 143 ln -sf ../zh_CN.eucCN/LC_NUMERIC \ 144 ${LOCALEDIR}/${link}/LC_NUMERIC 145.endfor 146.for link in ${ASCIILINKS} 147 ln -sf ../${link}.ISO8859-1/LC_NUMERIC \ 148 ${LOCALEDIR}/${link}.US-ASCII/LC_NUMERIC 149.endfor 150 ln -sf ../ja_JP.eucJP/LC_NUMERIC \ 151 ${LOCALEDIR}/ja_JP.SJIS/LC_NUMERIC 152 ln -sf ../ko_KR.eucKR/LC_NUMERIC \ 153 ${LOCALEDIR}/ko_KR.CP949/LC_NUMERIC 154.for link in ${UTF8_LATIN1LINKS} 155 ln -sf ../${link}.ISO8859-1/LC_NUMERIC \ 156 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 157.endfor 158.for link in ${UTF8_LATIN2LINKS} 159 ln -sf ../${link}.ISO8859-2/LC_NUMERIC \ 160 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 161.endfor 162.for link in ${UTF8_LATIN5LINKS} 163 ln -sf ../${link}.ISO8859-5/LC_NUMERIC \ 164 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 165.endfor 166.for link in ${UTF8_LATIN7LINKS} 167 ln -sf ../${link}.ISO8859-7/LC_NUMERIC \ 168 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 169.endfor 170.for link in ${UTF8_LATIN9LINKS} 171 ln -sf ../${link}.ISO8859-9/LC_NUMERIC \ 172 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 173.endfor 174.for link in ${UTF8_LATIN13LINKS} 175 ln -sf ../${link}.ISO8859-13/LC_NUMERIC \ 176 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 177.endfor 178.for link in ${UTF8_LATIN15LINKS} 179 ln -sf ../${link}.ISO8859-15/LC_NUMERIC \ 180 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 181.endfor 182.for link in ${UTF8_ARMSCII8LINKS} 183 ln -sf ../${link}.ARMSCII-8/LC_NUMERIC \ 184 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 185.endfor 186.for link in ${US_LINKS} 187 ln -sf ../en_US.UTF-8/LC_NUMERIC \ 188 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 189.endfor 190.for link in ${GB_LINKS} 191 ln -sf ../en_GB.UTF-8/LC_NUMERIC \ 192 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 193.endfor 194 ln -sf ../en_GB.UTF-8/LC_NUMERIC \ 195 ${LOCALEDIR}/en_IE.UTF-8/LC_NUMERIC 196.for link in ${FR_LINKS} 197 ln -sf ../fr_FR.UTF-8/LC_NUMERIC \ 198 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 199.endfor 200.for link in ${DE_LINKS} 201 ln -sf ../de_DE.UTF-8/LC_NUMERIC \ 202 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 203.endfor 204.for link in ${IT_LINKS} 205 ln -sf ../it_IT.UTF-8/LC_NUMERIC \ 206 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 207.endfor 208.for link in ${BE_LINKS} 209 ln -sf ../fr_BE.UTF-8/LC_NUMERIC \ 210 ${LOCALEDIR}/${link}.UTF-8/LC_NUMERIC 211.endfor 212 ln -sf ../be_BY.CP1251/LC_NUMERIC \ 213 ${LOCALEDIR}/be_BY.UTF-8/LC_NUMERIC 214 ln -sf ../bg_BG.CP1251/LC_NUMERIC \ 215 ${LOCALEDIR}/bg_BG.UTF-8/LC_NUMERIC 216 ln -sf ../en_US.US-ASCII/LC_NUMERIC \ 217 ${LOCALEDIR}/he_IL.UTF-8/LC_NUMERIC 218 ln -sf ../ja_JP.eucJP/LC_NUMERIC \ 219 ${LOCALEDIR}/ja_JP.UTF-8/LC_NUMERIC 220 ln -sf ../kk_KZ.PT154/LC_NUMERIC \ 221 ${LOCALEDIR}/kk_KZ.UTF-8/LC_NUMERIC 222 ln -sf ../ko_KR.eucKR/LC_NUMERIC \ 223 ${LOCALEDIR}/ko_KR.UTF-8/LC_NUMERIC 224 ln -sf ../ru_RU.CP866/LC_NUMERIC \ 225 ${LOCALEDIR}/ru_RU.UTF-8/LC_NUMERIC 226 ln -sf ../zh_CN.eucCN/LC_NUMERIC \ 227 ${LOCALEDIR}/zh_CN.UTF-8/LC_NUMERIC 228 ln -sf ../zh_TW.Big5/LC_NUMERIC \ 229 ${LOCALEDIR}/zh_HK.UTF-8/LC_NUMERIC 230 ln -sf ../zh_TW.Big5/LC_NUMERIC \ 231 ${LOCALEDIR}/zh_TW.UTF-8/LC_NUMERIC 232 233.include <bsd.prog.mk> 234