archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / tcsh / trunk / tcsh.install
bloba36f120b7d9b70e84868f9185330266478a6ac41
1 post_install() {
2   # tcsh
3   grep -Fqx /bin/tcsh /etc/shells || echo /bin/tcsh >>/etc/shells
4   grep -Fqx /usr/bin/tcsh /etc/shells || echo /usr/bin/tcsh >>/etc/shells
6   # csh
7   grep -Fqx /bin/csh /etc/shells || echo /bin/csh >>/etc/shells
8   grep -Fqx /usr/bin/csh /etc/shells || echo /usr/bin/csh >>/etc/shells
11 post_upgrade() {
12   post_install
15 post_remove() {
16   # tcsh
17   sed -i -r '/^(\/usr)?\/bin\/tcsh$/d' etc/shells
19   # csh
20   sed -i -r '/^(\/usr)?\/bin\/csh$/d' etc/shells