Use NLSLINKS to setup symbolic links in NLS area

This commit is contained in:
Alexey Zelkin 2002-03-04 12:29:21 +00:00
parent 0aa35985b9
commit c1633140b7
2 changed files with 16 additions and 37 deletions

View File

@ -13,39 +13,22 @@ CATALOGS= et:et_EE.ISO8859-15 \
spanish:es_ES.ISO8859-1 \
ukrainian:uk_UA.KOI8-U
CATALOGS_LINKS= fi_FI.ISO8859-1 fi_FI.ISO8859-15 \
fr_FR.ISO8859-1 fr_BE.ISO8859-1 \
fr_FR.ISO8859-1 fr_BE.ISO8859-15 \
fr_FR.ISO8859-1 fr_CA.ISO8859-1 \
fr_FR.ISO8859-1 fr_CA.ISO8859-15 \
fr_FR.ISO8859-1 fr_CH.ISO8859-1 \
fr_FR.ISO8859-1 fr_CH.ISO8859-15 \
fr_FR.ISO8859-1 fr_FR.ISO8859-15 \
de_DE.ISO8859-1 de_AT.ISO8859-1 \
de_DE.ISO8859-1 de_AT.ISO8859-15 \
de_DE.ISO8859-1 de_CH.ISO8859-1 \
de_DE.ISO8859-1 de_CH.ISO8859-15 \
de_DE.ISO8859-1 de_DE.ISO8859-15 \
it_IT.ISO8859-1 it_CH.ISO8859-1 \
it_IT.ISO8859-1 it_CH.ISO8859-15 \
it_IT.ISO8859-1 it_IT.ISO8859-15 \
es_ES.ISO8859-1 es_ES.ISO8859-15
NLSLINKS_fi_FI.ISO8859-1= fi_FI.ISO8859-15
NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \
fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 fr_CH.ISO8859-15 \
fr_FR.ISO8859-15
NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \
de_CH.ISO8859-15 de_DE.ISO8859-15
NLSLINKS_it_IT.ISO8859-1= it_CH.ISO8859-1 it_CH.ISO8859-15 it_IT.ISO8859-15
NLSLINKS_es_ES.ISO8859-1= es_ES.ISO8859-15
NLSNAME= tcsh
NLSSRCFILES= set[0-9]*
.for catalog in ${CATALOGS}
NLSSRCDIR_${catalog:C/.*://g}.msg:= ${BASESRC}/${catalog:C/:.*//g}
NLSSRCFILES_${catalog:C/.*://g}.msg= set[0-9]*
NLS+=${catalog:C/.*://g}.msg
.endfor
afterinstall:
@set ${CATALOGS_LINKS}; \
while test $$# -ge 2; do \
f=$$1/${NLSNAME}.cat; shift; \
l=$$1/${NLSNAME}.cat; shift; \
${ECHO} "$$f -> $$l"; \
ln -fs ../$$f ${DESTDIR}${NLSDIR}/$$l; \
done; true
.include <bsd.nls.mk>

View File

@ -12,23 +12,19 @@ LDADD= -lncurses
LANGS= en_US.US-ASCII fr_FR.ISO8859-1 de_DE.ISO8859-1 pl_PL.ISO8859-2 \
uk_UA.KOI8-U ru_RU.KOI8-R
8859_15_LINKS = fr_FR de_DE
ENUS_LINKS = ISO8859-1 ISO8859-15
NLSLINKS_en_US.US-ASCII= C en_US.ISO8859-1 en_US.ISO8859-15
NLSLINKS_fr_FR.ISO8859-1= fr_FR.ISO8859-15
NLSLINKS_de_DE.ISO8859-1= de_DE.ISO8859-15
NLSNAME=ee
NLSSRCFILES=ee.msg
.for lang in ${LANGS}
NLSSRCDIR_${lang}.msg=${.CURDIR}/nls/${lang}
NLSSRCFILES_${lang}.msg=ee.msg
NLS+=${lang}.msg
.endfor
.for link in ${ENUS_LINKS}
SYMLINKS+= ../en_US.US-ASCII/ee.cat ${NLSDIR}/en_US.${link}/ee.cat
.endfor
.for link in ${8859_15_LINKS}
SYMLINKS+= ../${link}.ISO8859-1/ee.cat ${NLSDIR}/${link}.ISO8859-15/ee.cat
.endfor
.include <bsd.prog.mk>
.include <bsd.nls.mk>