From b13a684938f54d7a1b0fe645bcb74d3bbb62f63f Mon Sep 17 00:00:00 2001 From: kim Date: Sat, 10 Aug 2002 13:02:56 +0000 Subject: Create NLS catalogue directories only if they do not already exist. This should avoid unnecessary warnings from pkgsrc installs, while allowing tcsh-standalone to work. --- shells/tcsh/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shells/tcsh/Makefile b/shells/tcsh/Makefile index ed407442002..6c379ec3d47 100644 --- a/shells/tcsh/Makefile +++ b/shells/tcsh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2002/07/25 11:13:48 kim Exp $ +# $NetBSD: Makefile,v 1.36 2002/08/10 13:02:56 kim Exp $ # DISTNAME= tcsh-6.12.00 @@ -29,6 +29,8 @@ LOWER_OPSYS= solaris${OS_VERSION} 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} @@ -56,6 +58,8 @@ post-install: 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 \ -- cgit v1.2.3