Use bsd.nls.mk for building/installing NLS files
XXX: links handling simplify
This commit is contained in:
parent
1998c28f48
commit
f66b3927b3
@ -1,5 +1,51 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= et finnish french german greek italian ja russian spanish ukrainian
|
||||
BASESRC= ${.CURDIR}/../../../contrib/tcsh/nls
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
CATALOGS= et:et_EE.ISO8859-15 \
|
||||
finnish:fi_FI.ISO8859-1 \
|
||||
french:fr_FR.ISO8859-1 \
|
||||
german:de_DE.ISO8859-1 \
|
||||
greek:el_GR.ISO8859-7 \
|
||||
italian:it_IT.ISO8859-1 \
|
||||
ja:ja_JP.eucJP \
|
||||
russian:ru_RU.KOI8-R \
|
||||
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
|
||||
|
||||
NLSNAME= tcsh
|
||||
|
||||
.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>
|
||||
|
@ -1,16 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= et
|
||||
DL= et_EE.ISO8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,20 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= finnish
|
||||
DL= fi_FI.ISO8859-1
|
||||
LL= fi_FI.ISO8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
.for i in ${LL}
|
||||
ln -fs ../${DL}/tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
.endfor
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,22 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= french
|
||||
DL= fr_FR.ISO8859-1
|
||||
LL= fr_BE.ISO8859-1 fr_CA.ISO8859-1 fr_CH.ISO8859-1 \
|
||||
fr_BE.ISO8859-15 fr_CA.ISO8859-15 fr_CH.ISO8859-15 \
|
||||
fr_FR.ISO8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
.for i in ${LL}
|
||||
ln -fs ../${DL}/tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
.endfor
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,21 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= german
|
||||
DL= de_DE.ISO8859-1
|
||||
LL= de_AT.ISO8859-1 de_CH.ISO8859-1 de_AT.ISO8859-15 \
|
||||
de_CH.ISO8859-15 de_DE.ISO8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
.for i in ${LL}
|
||||
ln -fs ../${DL}/tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
.endfor
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,16 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= greek
|
||||
DL= el_GR.ISO8859-7
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,20 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= italian
|
||||
DL= it_IT.ISO8859-1
|
||||
LL= it_CH.ISO8859-1 it_IT.ISO8859-15 it_CH.ISO8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
.for i in ${LL}
|
||||
ln -fs ../${DL}/tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
.endfor
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,16 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= ja
|
||||
DL= ja_JP.eucJP
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,16 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= russian
|
||||
DL= ru_RU.KOI8-R
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,20 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= spanish
|
||||
DL= es_ES.ISO8859-1
|
||||
LL= es_ES.ISO8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
.for i in ${LL}
|
||||
ln -fs ../${DL}/tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
.endfor
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,16 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
NL= ukrainian
|
||||
DL= uk_UA.KOI8-U
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
tcsh.msg: set[0-9]*
|
||||
cat ${BASESRC}/${NL}/set[0-9] \
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
|
||||
.include <bsd.prog.mk>
|
Loading…
Reference in New Issue
Block a user