openbsd-ports/lang/python/pkg/DEINSTALL
jasoni a822bae6e7 - Remove Python 2.0 from python2, this was a mistake.
- Move Python 2.0 to python.
- Remove Python 1.6
2000-12-13 05:26:45 +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.0" ]; then
rm -f ${PREFIX}/bin/python
fi
fi
exit 0