19 lines
275 B
Bash
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
|