a822bae6e7
- Move Python 2.0 to python. - Remove Python 1.6
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.0" ]; then
|
|
rm -f ${PREFIX}/bin/python
|
|
fi
|
|
fi
|
|
|
|
exit 0
|