From 926637962b162ec48abcdffaca3dd14d2ff65dd1 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 20 Apr 2000 08:58:11 +0000 Subject: Activate NLS. Optimize NLS by not wasting space copying the same .cat but use symbolic links instead. --- bin/csh/Makefile | 1 + bin/csh/nls/finnish/Makefile | 10 ++++++---- bin/csh/nls/french/Makefile | 13 ++++++++----- bin/csh/nls/german/Makefile | 12 +++++++----- bin/csh/nls/greek/Makefile | 6 ++---- bin/csh/nls/italian/Makefile | 11 ++++++----- bin/csh/nls/ja/Makefile | 6 ++---- bin/csh/nls/spanish/Makefile | 10 ++++++---- 8 files changed, 38 insertions(+), 31 deletions(-) (limited to 'bin/csh') diff --git a/bin/csh/Makefile b/bin/csh/Makefile index 0a048c3..c9ae4b8 100644 --- a/bin/csh/Makefile +++ b/bin/csh/Makefile @@ -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 \ diff --git a/bin/csh/nls/finnish/Makefile b/bin/csh/nls/finnish/Makefile index 6756537..9397548 100644 --- a/bin/csh/nls/finnish/Makefile +++ b/bin/csh/nls/finnish/Makefile @@ -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 diff --git a/bin/csh/nls/french/Makefile b/bin/csh/nls/french/Makefile index 06b3d85..2ab3f14 100644 --- a/bin/csh/nls/french/Makefile +++ b/bin/csh/nls/french/Makefile @@ -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 diff --git a/bin/csh/nls/german/Makefile b/bin/csh/nls/german/Makefile index f109611..f4c55e2 100644 --- a/bin/csh/nls/german/Makefile +++ b/bin/csh/nls/german/Makefile @@ -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 diff --git a/bin/csh/nls/greek/Makefile b/bin/csh/nls/greek/Makefile index af20ee2..1809d8d 100644 --- a/bin/csh/nls/greek/Makefile +++ b/bin/csh/nls/greek/Makefile @@ -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 diff --git a/bin/csh/nls/italian/Makefile b/bin/csh/nls/italian/Makefile index 5cf3564..0f97290 100644 --- a/bin/csh/nls/italian/Makefile +++ b/bin/csh/nls/italian/Makefile @@ -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 diff --git a/bin/csh/nls/ja/Makefile b/bin/csh/nls/ja/Makefile index 2b29fa2..a8e1d57 100644 --- a/bin/csh/nls/ja/Makefile +++ b/bin/csh/nls/ja/Makefile @@ -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 diff --git a/bin/csh/nls/spanish/Makefile b/bin/csh/nls/spanish/Makefile index c0bc154..9ddff79 100644 --- a/bin/csh/nls/spanish/Makefile +++ b/bin/csh/nls/spanish/Makefile @@ -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 -- cgit v1.1