diff options
author | ru <ru@FreeBSD.org> | 2002-07-02 12:37:09 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-07-02 12:37:09 +0000 |
commit | 5179f05e3398169a25ab709a7f6ba906212bfd68 (patch) | |
tree | 91ad217324f8e79373a55d46b03690c4339c7ea5 /bin/csh | |
parent | 038386078dfe384615c466ae7a32b271e5e0751f (diff) | |
download | FreeBSD-src-5179f05e3398169a25ab709a7f6ba906212bfd68.zip FreeBSD-src-5179f05e3398169a25ab709a7f6ba906212bfd68.tar.gz |
Reimplemented bsd.nls.mk using bsd.files.mk and bsd.links.mk.
Provided the (previously missing) dependency on source files
for intermediate .msg files.
Provided the default for NLSSRCDIR (defaults to .CURDIR).
Slightly changed the API: NLS should now list plain locale
names, without the .msg suffix.
When included from bsd.prog.mk, NLSNAME defaults to PROG.
Diffstat (limited to 'bin/csh')
-rw-r--r-- | bin/csh/Makefile | 29 | ||||
-rw-r--r-- | bin/csh/nls/Makefile | 34 |
2 files changed, 28 insertions, 35 deletions
diff --git a/bin/csh/Makefile b/bin/csh/Makefile index 4bc79fd..ccbdb93 100644 --- a/bin/csh/Makefile +++ b/bin/csh/Makefile @@ -10,7 +10,6 @@ TCSHDIR= ${.CURDIR}/../../contrib/tcsh .PATH: ${TCSHDIR} PROG= csh -SUBDIR= nls DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"' CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS} WARNS= 0 @@ -46,6 +45,34 @@ CLEANFILES= ${GENHDRS} gethost csh.1 FILESDIR= ${SHAREDIR}/examples/tcsh FILES= complete.tcsh csh-mode.el +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 + +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 + +.for catalog in ${CATALOGS} +NLS+= ${catalog:C/.*://} +NLSSRCDIR_${catalog:C/.*://}= ${TCSHDIR}/nls/${catalog:C/:.*//} +NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo set[0-9]* +.endfor + csh.1: tcsh.man ln -sf ${.ALLSRC} ${.TARGET} diff --git a/bin/csh/nls/Makefile b/bin/csh/nls/Makefile deleted file mode 100644 index 54efa4d3..0000000 --- a/bin/csh/nls/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -# $FreeBSD$ - -BASESRC= ${.CURDIR}/../../../contrib/tcsh/nls - -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 - -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} -NLS+=${catalog:C/.*://g}.msg -.endfor - -.include <bsd.nls.mk> |