mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Activate NLS.
Optimize NLS by not wasting space copying the same .cat but use symbolic links instead.
This commit is contained in:
parent
35754f3b83
commit
43cf5ff9b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59432
@ -10,6 +10,7 @@ TCSHDIR= ${.CURDIR}/../../contrib/tcsh
|
||||
.PATH: ${TCSHDIR}
|
||||
|
||||
PROG= csh
|
||||
SUBDIR= nls
|
||||
DFLAGS= -D_PATH_TCSHELL='"${DESTDIR}/bin/${PROG}"'
|
||||
CFLAGS+= -I${TCSHDIR} -I${.CURDIR} -I. ${DFLAGS}
|
||||
SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
|
||||
|
@ -3,7 +3,8 @@
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
NL= finnish
|
||||
DL= fi_FI.ISO_8859-1 fi_FI.DIS_8859-15
|
||||
DL= fi_FI.ISO_8859-1
|
||||
LL= fi_FI.DIS_8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
@ -16,9 +17,10 @@ tcsh.msg: set[0-9]*
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
.for i in ${DL}
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
${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.obj.mk>
|
||||
|
@ -3,8 +3,10 @@
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
NL= french
|
||||
DL= fr_BE.ISO_8859-1 fr_CA.ISO_8859-1 fr_CH.ISO_8859-1 fr_FR.ISO_8859-1 \
|
||||
fr_BE.DIS_8859-15 fr_CA.DIS_8859-15 fr_CH.DIS_8859-15 fr_FR.DIS_8859-15
|
||||
DL= fr_FR.ISO_8859-1
|
||||
LL= fr_BE.ISO_8859-1 fr_CA.ISO_8859-1 fr_CH.ISO_8859-1 \
|
||||
fr_BE.DIS_8859-15 fr_CA.DIS_8859-15 fr_CH.DIS_8859-15 \
|
||||
fr_FR.DIS_8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
@ -17,9 +19,10 @@ tcsh.msg: set[0-9]*
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
.for i in ${DL}
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
${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.obj.mk>
|
||||
|
@ -3,8 +3,9 @@
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
NL= german
|
||||
DL= de_AT.ISO_8859-1 de_CH.ISO_8859-1 de_DE.ISO_8859-1 \
|
||||
de_AT.DIS_8859-15 de_CH.DIS_8859-15 de_DE.DIS_8859-15
|
||||
DL= de_DE.ISO_8859-1
|
||||
LL= de_AT.ISO_8859-1 de_CH.ISO_8859-1 de_AT.DIS_8859-15 \
|
||||
de_CH.DIS_8859-15 de_DE.DIS_8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
@ -17,9 +18,10 @@ tcsh.msg: set[0-9]*
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
.for i in ${DL}
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
${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.obj.mk>
|
||||
|
@ -16,9 +16,7 @@ tcsh.msg: set[0-9]*
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
.for i in ${DL}
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
.endfor
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
|
@ -3,8 +3,8 @@
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
NL= italian
|
||||
DL= it_IT.ISO_8859-1 it_CH.ISO_8859-1 \
|
||||
it_IT.DIS_8859-15 it_CH.DIS_8859-15
|
||||
DL= it_IT.ISO_8859-1
|
||||
LL= it_CH.ISO_8859-1 it_IT.DIS_8859-15 it_CH.DIS_8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
@ -17,9 +17,10 @@ tcsh.msg: set[0-9]*
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
.for i in ${DL}
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
${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.obj.mk>
|
||||
|
@ -16,9 +16,7 @@ tcsh.msg: set[0-9]*
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
.for i in ${DL}
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
.endfor
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
|
@ -3,7 +3,8 @@
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
NL= spanish
|
||||
DL= es_ES.ISO_8859-1 es_ES.DIS_8859-15
|
||||
DL= es_ES.ISO_8859-1
|
||||
LL= es_ES.DIS_8859-15
|
||||
|
||||
.PATH: ${BASESRC}/${NL}
|
||||
|
||||
@ -16,9 +17,10 @@ tcsh.msg: set[0-9]*
|
||||
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
|
||||
|
||||
install:
|
||||
.for i in ${DL}
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
tcsh.cat ${DESTDIR}${NLSDIR}/$i/tcsh.cat
|
||||
${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.obj.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user