#!/bin/sh

PYTHONVERSION=2.2
if test -e ../pythonversion
then
	. ../pythonversion
fi

pvrs=$PYTHONVERSION
case $pvrs in
1.*)
	PYTHONLIB=/boot/home/config/lib/python${pvrs}/plat-beos
	;;
*)
	r=$(uname -r)
	r=${r%.*}
	PYTHONLIB=/boot/home/config/lib/python${pvrs}/plat-beos$r
	;;
esac

case $# in
0)
	set *.py;;
*)
	case $1 in
	*.py) ;;
	*)   echo 'usage: install [AppKit.py ...]'; exit 1;;
	esac
esac

if test -d $PYTHONLIB
then :
else
	echo $PYTHONLIB: 'No such directory'; exit 1
fi

cp -p $* $PYTHONLIB
