aboutsummaryrefslogtreecommitdiffstats
path: root/shells/zsh
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1998-08-27 10:33:51 +0800
committermax <max@FreeBSD.org>1998-08-27 10:33:51 +0800
commitd00ff7b688dfd109953b8b4fcfbf60a61498374d (patch)
tree07517144c5d094d6d50bca37af32a432bb5cd34d /shells/zsh
parent9892dd63822a21daab8edfc7edc495575e792ea3 (diff)
downloadfreebsd-ports-gnome-d00ff7b688dfd109953b8b4fcfbf60a61498374d.tar.gz
freebsd-ports-gnome-d00ff7b688dfd109953b8b4fcfbf60a61498374d.tar.zst
freebsd-ports-gnome-d00ff7b688dfd109953b8b4fcfbf60a61498374d.zip
Update /etc/shells upon make install.
Diffstat (limited to 'shells/zsh')
-rw-r--r--shells/zsh/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile
index 50a5246787ec..e34b675202e7 100644
--- a/shells/zsh/Makefile
+++ b/shells/zsh/Makefile
@@ -3,7 +3,7 @@
# Date created: 11 Feb. 1995
# Whom: torstenb
#
-# $Id: Makefile,v 1.25 1997/06/25 05:24:43 torstenb Exp $
+# $Id: Makefile,v 1.26 1997/09/26 08:23:14 torstenb Exp $
#
DISTNAME= zsh-3.0.5
@@ -32,5 +32,10 @@ post-install:
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
fi
@install-info ${PREFIX}/info/zsh.info ${PREFIX}/info/dir
+ @${ECHO} "Updating /etc/shells"
+ @${CP} /etc/shells /etc/shells.bak
+ @(${GREP} -v ${PREFIX}/bin/zsh /etc/shells.bak; \
+ ${ECHO} ${PREFIX}/bin/zsh) > /etc/shells
+ @${RM} /etc/shells.bak
.include <bsd.port.mk>