diff options
author | kim <kim@pkgsrc.org> | 2002-08-10 13:02:56 +0000 |
---|---|---|
committer | kim <kim@pkgsrc.org> | 2002-08-10 13:02:56 +0000 |
commit | fcc322575136b7f3219d6d88c3e9245f92ec6bfe (patch) | |
tree | 4655bd20ce8e9dad649059a72b6c20fabd06affc | |
parent | 03a3cef468e7fd6dc883701d1915b14798457e7c (diff) | |
download | pkgsrc-fcc322575136b7f3219d6d88c3e9245f92ec6bfe.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.
-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 \ |