#!/bin/sh
#
# $OpenBSD: INSTALL-idle,v 1.1.1.1 2003/12/31 17:38:33 sturm Exp $
#
# Set us up as the default IDLE 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/idle ]
	then
		cd /usr/local/bin
		ln -s idle2.3 idle
	else
		cat <<EOT

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

EOT
	fi
fi

