diff options
author | Masafumi Max NAKANE <max@FreeBSD.org> | 1998-08-27 02:33:51 +0000 |
---|---|---|
committer | Masafumi Max NAKANE <max@FreeBSD.org> | 1998-08-27 02:33:51 +0000 |
commit | 7d889fa355a6f606366274e24f93894f2c4f3ac9 (patch) | |
tree | 5e5a69e70942c250ce0db90909f655836e1b191a /shells | |
parent | a05991d1a2eb22cd79e3b6ea88da11481e043f5a (diff) |
Update /etc/shells upon make install.
Notes
Notes:
svn path=/head/; revision=12876
Diffstat (limited to 'shells')
-rw-r--r-- | shells/zsh-devel/Makefile | 7 | ||||
-rw-r--r-- | shells/zsh/Makefile | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/shells/zsh-devel/Makefile b/shells/zsh-devel/Makefile index 50a5246787ec..e34b675202e7 100644 --- a/shells/zsh-devel/Makefile +++ b/shells/zsh-devel/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> 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> |