diff options
author | kim <kim> | 2002-08-10 13:02:56 +0000 |
---|---|---|
committer | kim <kim> | 2002-08-10 13:02:56 +0000 |
commit | b13a684938f54d7a1b0fe645bcb74d3bbb62f63f (patch) | |
tree | 4655bd20ce8e9dad649059a72b6c20fabd06affc /shells | |
parent | 10e2eaa9269c578d30a3aa4e3427f4d2ab4b4bbb (diff) | |
download | pkgsrc-b13a684938f54d7a1b0fe645bcb74d3bbb62f63f.tar.gz |
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.
Diffstat (limited to 'shells')
-rw-r--r-- | shells/tcsh/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
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 \ |