summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-02-15 22:19:32 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-02-15 22:19:32 +0000
commit6e071795dfa448c43d69e1c2ce0cd85d8aa83028 (patch)
tree2d253d4a073fab6d01ddbb55c40682adc623fcf8 /shells
parentRemove pre-install, done by mtree (diff)
Automatic install/uninstall /etc/shells entry
Submitted by: mark@grondar.za
Notes
Notes: svn path=/head/; revision=989
Diffstat (limited to 'shells')
-rw-r--r--shells/zsh-devel/pkg-plist2
-rw-r--r--shells/zsh/pkg-plist2
2 files changed, 4 insertions, 0 deletions
diff --git a/shells/zsh-devel/pkg-plist b/shells/zsh-devel/pkg-plist
index 20a51d04fd06..fa66d85094bb 100644
--- a/shells/zsh-devel/pkg-plist
+++ b/shells/zsh-devel/pkg-plist
@@ -1,5 +1,7 @@
@cwd /usr/local
bin/zsh
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
man/man1/zsh.1
info/zsh.info
info/zsh.info-1
diff --git a/shells/zsh/pkg-plist b/shells/zsh/pkg-plist
index 20a51d04fd06..fa66d85094bb 100644
--- a/shells/zsh/pkg-plist
+++ b/shells/zsh/pkg-plist
@@ -1,5 +1,7 @@
@cwd /usr/local
bin/zsh
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
man/man1/zsh.1
info/zsh.info
info/zsh.info-1