Only attempt to install the individual message catalogs if they have been
generated. Some versions of Solaris do not automatically generate the catalogs.
This commit is contained in:
parent
4b2b159f8f
commit
f84a58a91c
1 changed files with 45 additions and 43 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.42 2003/02/14 18:59:19 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.43 2003/05/05 16:40:28 agc Exp $
|
||||
#
|
||||
|
||||
DISTNAME= tcsh-6.12.00
|
||||
|
@ -34,48 +34,50 @@ PKG_SHELL?= ${PREFIX}/bin/tcsh
|
|||
|
||||
post-install:
|
||||
@${ECHO} "Installing message catalogues"
|
||||
@[ -d ${PREFIX}/${NLSDIR}/C ] || \
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/${NLSDIR}/C
|
||||
@${INSTALL_DATA} ${WRKSRC}/tcsh.C.cat ${PREFIX}/${NLSDIR}/C/tcsh.cat
|
||||
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
|
||||
@${ECHO} ${NLSDIR}/C/tcsh.cat >> ${PLIST_SRC}
|
||||
@for i in \
|
||||
et:ISO_8859-15:et:EE \
|
||||
finnish:ISO_8859-1:fi:FI \
|
||||
french:ISO_8859-1:fr:BE:CA:CH:FR \
|
||||
german:ISO_8859-1:de:AT:CH:DE \
|
||||
greek:ISO_8859-7:el:GR \
|
||||
italian:ISO_8859-1:it:CH:IT \
|
||||
ja:eucJP:ja:JP \
|
||||
pl:ISO_8859-2:pl:PL \
|
||||
russian:KOI8-R:ru:RU:SU \
|
||||
spanish:ISO_8859-1:es:ES \
|
||||
ukrainian:KOI8-U:uk:UA \
|
||||
; \
|
||||
do \
|
||||
OIFS="${IFS}"; \
|
||||
IFS=":${IFS}"; \
|
||||
set -- $$i; \
|
||||
IFS="${OIFS}"; \
|
||||
l=$$1; shift; \
|
||||
s=$$1; shift; \
|
||||
c=$$1; shift; \
|
||||
o=; \
|
||||
while [ $$# -gt 0 ]; do \
|
||||
d=${NLSDIR}/$${c}_$$1.$${s}; \
|
||||
[ -d ${PREFIX}/$$d ] || \
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/$$d; \
|
||||
if [ -z "$$o" ]; then \
|
||||
o="$$d"; \
|
||||
${INSTALL_DATA} ${WRKSRC}/tcsh.$${l}.cat \
|
||||
${PREFIX}/$${d}/tcsh.cat; \
|
||||
else \
|
||||
${LN} -f ${PREFIX}/$${o}/tcsh.cat \
|
||||
${PREFIX}/$${d}; \
|
||||
fi; \
|
||||
${ECHO} $${d}/tcsh.cat >> ${PLIST_SRC}; \
|
||||
shift 1; \
|
||||
done; \
|
||||
done
|
||||
@if [ -f ${WRKSRC}/tcsh.C.cat ]; then \
|
||||
[ -d ${PREFIX}/${NLSDIR}/C ] || \
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/${NLSDIR}/C; \
|
||||
${INSTALL_DATA} ${WRKSRC}/tcsh.C.cat ${PREFIX}/${NLSDIR}/C/tcsh.cat; \
|
||||
${ECHO} ${NLSDIR}/C/tcsh.cat >> ${PLIST_SRC}; \
|
||||
for i in \
|
||||
et:ISO_8859-15:et:EE \
|
||||
finnish:ISO_8859-1:fi:FI \
|
||||
french:ISO_8859-1:fr:BE:CA:CH:FR \
|
||||
german:ISO_8859-1:de:AT:CH:DE \
|
||||
greek:ISO_8859-7:el:GR \
|
||||
italian:ISO_8859-1:it:CH:IT \
|
||||
ja:eucJP:ja:JP \
|
||||
pl:ISO_8859-2:pl:PL \
|
||||
russian:KOI8-R:ru:RU:SU \
|
||||
spanish:ISO_8859-1:es:ES \
|
||||
ukrainian:KOI8-U:uk:UA \
|
||||
; \
|
||||
do \
|
||||
OIFS="${IFS}"; \
|
||||
IFS=":${IFS}"; \
|
||||
set -- $$i; \
|
||||
IFS="${OIFS}"; \
|
||||
l=$$1; shift; \
|
||||
s=$$1; shift; \
|
||||
c=$$1; shift; \
|
||||
o=; \
|
||||
while [ $$# -gt 0 ]; do \
|
||||
d=${NLSDIR}/$${c}_$$1.$${s}; \
|
||||
[ -d ${PREFIX}/$$d ] || \
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/$$d; \
|
||||
if [ -z "$$o" ]; then \
|
||||
o="$$d"; \
|
||||
${INSTALL_DATA} ${WRKSRC}/tcsh.$${l}.cat \
|
||||
${PREFIX}/$${d}/tcsh.cat; \
|
||||
else \
|
||||
${LN} -f ${PREFIX}/$${o}/tcsh.cat \
|
||||
${PREFIX}/$${d}; \
|
||||
fi; \
|
||||
${ECHO} $${d}/tcsh.cat >> ${PLIST_SRC}; \
|
||||
shift 1; \
|
||||
done; \
|
||||
done \
|
||||
fi
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
Loading…
Reference in a new issue