#!/bin/sh
#
# $OpenBSD: INSTALL-idle,v 1.1 2003/12/13 15:03:08 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 ${PREFIX}/bin/idle ]
	then
		cd ${PREFIX}/bin
		ln -s idle2.1 idle
	else
		cat <<EOT

+---------------
| ${PREFIX}/bin/idle already exists.  If you want to use this
| package as your system default idle, make ${PREFIX}/bin/idle a
| symlink to ${PREFIX}/bin/idle2.1.
+---------------

EOT
	fi
fi

