openbsd-ports/shells/tcsh/pkg/DEINSTALL
2001-04-04 01:41:47 +00:00

23 lines
484 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2001/04/04 01:41:47 brad Exp $
#
# tcsh de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
if grep -q $PREFIX/bin/tcsh /etc/shells; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to edit"
echo "| /etc/shells and remove this line:"
echo "|"
echo "| $PREFIX/bin/tcsh"
echo "|"
echo "+---------------"
echo
fi
exit 0