#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.1.1.1 2003/12/31 17:38:25 sturm Exp $
#
# Set us up as the default python if there is not one already.
#

set -e
PATH=/bin
PREFIX=${PKG_PREFIX:-/usr/local}

if [ x$2 = xPOST-INSTALL ]
then
	if [ ! -e /usr/local/bin/python ]
	then
		cd /usr/local/bin
		ln -s python2.3 python
	else
		cat <<EOT

+---------------
| /usr/local/bin/python already exists.  If you want to use this
| package as your system default python, make /usr/local/bin/python a
| symlink to /usr/local/bin/python2.3.
+---------------

EOT
	fi

	if [ ! -e /usr/local/bin/pydoc ]
	then
		cd /usr/local/bin
		ln -s pydoc2.3 pydoc
	else
		cat <<EOT

+---------------
| /usr/local/bin/pydoc already exists.  If you want to use this
| package as your system default pydoc, make /usr/local/bin/pydoc a
| symlink to /usr/local/bin/pydoc2.3.
+---------------

EOT
	fi
fi

