openbsd-ports/lang/python/2.3/pkg/DEINSTALL
sturm 282437dff5 initial import of python 2.3.3 from
Aleksander Piotrowski <aleksander dot piotrowski at nic dot com dot pl>
2003-12-31 17:38:25 +00:00

21 lines
357 B
Bash

#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.1.1.1 2003/12/31 17:38:33 sturm Exp $
#
# Clean up python symlink, if it was ours.
#
set -e
PATH=/bin
PREFIX=${PKG_PREFIX:-/usr/local}
if [ ${PREFIX}/bin/python -ef ${PREFIX}/bin/python2.3 ]
then
rm -f ${PREFIX}/bin/python
fi
if [ ${PREFIX}/bin/pydoc -ef ${PREFIX}/bin/pydoc2.3 ]
then
rm -f ${PREFIX}/bin/pydoc
fi