#! /bin/sh

APS_BASEDIR=`grep APS_BASEDIR /etc/printcap | cut -d ':' -f 2`

if [ ! $APS_BASEDIR ]; then
	echo "you must install apsfilter first before installing rewindstdin"
	exit 1
else
	echo "installing rewindstdin in $APS_BASEDIR/bin"
	sleep 1
fi

BINDIR=$APS_BASEDIR/bin

cp rewindstdin $BINDIR
chmod 555 $BINDIR/rewindstdin
