openbsd-ports/lang/python/pkg/DEINSTALL
2001-06-05 17:00:21 +00:00

19 lines
275 B
Bash

#! /bin/sh
# $OpenBSD#
#
# Python 2.0 deinstall script.
#
set -e
PATH=/bin:/usr/bin
PREFIX=${PKG_PREFIX:-/usr/local}
if [ -L ${PREFIX}/bin/python ]; then
LINK=`readlink ${PREFIX}/bin/python`
if [ ${LINK} == "python2.1" ]; then
rm -f ${PREFIX}/bin/python
fi
fi
exit 0