diff options
author | tron <tron@pkgsrc.org> | 2001-09-23 21:01:29 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-09-23 21:01:29 +0000 |
commit | 0aa1f59f15041259691dd8dcf1c707223a33a062 (patch) | |
tree | b29b85408effe8dd04117842014bb17fb45b00b8 /shells/zsh/Makefile | |
parent | 9a3915e30211d1a47bfd270a2dd90d56d6467665 (diff) | |
download | pkgsrc-0aa1f59f15041259691dd8dcf1c707223a33a062.tar.gz |
Make modifications of "/etc/shells" robust so that they don't fail if
"/etc/shells" doesn't exist or is empty after removing entries for
cerntain shell. These problems show up e.g. under SunOS.
Diffstat (limited to 'shells/zsh/Makefile')
-rw-r--r-- | shells/zsh/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile index 69881070434..4a157372949 100644 --- a/shells/zsh/Makefile +++ b/shells/zsh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2001/07/23 18:23:44 nra Exp $ +# $NetBSD: Makefile,v 1.24 2001/09/23 21:01:30 tron Exp $ DISTNAME= zsh-4.0.2 CATEGORIES= shells @@ -32,8 +32,9 @@ post-install: @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zsh @cd ${WRKSRC}/Etc; ${INSTALL_DATA} BUGS FAQ FEATURES NEWS \ ${PREFIX}/share/doc/zsh + ${TOUCH} /etc/shells ${CP} /etc/shells /etc/shells.bak - (${GREP} -v ${PREFIX}/bin/zsh /etc/shells.bak; ${ECHO} ${PREFIX}/bin/zsh) >/etc/shells + (${GREP} -v ${PREFIX}/bin/zsh /etc/shells.bak || ${TRUE}; ${ECHO} ${PREFIX}/bin/zsh) >/etc/shells ${RM} /etc/shells.bak .include "../../mk/bsd.pkg.mk" |