freebsd-ports/sysutils/autojump/pkg-deinstall
Alexey Dokuchaev 6adc132072 - Sanitize and cleanup the port a bit: remove "Portname is ..." from COMMENT,
drop useless EXTRACT_SUFX, define LICENSE (GPLv3), sort the knobs, etc.
- Do not patch ./install.zsh file; it is nearly identical to ./install.sh
  except for the _f file, which can be installed separately (do so)
- Stagify, use OPTIONS helpers, trim superfluous whitespace here and there
2014-03-15 08:01:49 +00:00

15 lines
334 B
Bash

#!/bin/sh
case $2 in
POST-DEINSTALL)
rm -f /etc/profile.autojump
rm -f /etc/zshrc.autojump
# delete the source (.) line from the /etc/profile and /etc/zshrc
if [ -f /etc/profile ] ; then
sed -i '' -e '/profile.autojump/d' /etc/profile
fi
if [ -f /etc/zshrc ] ; then
sed -i '' -e '/zshrc.autojump/d' /etc/zshrc
fi
;;
esac