#!/bin/sh

echo  "Please enter the directory where the realproducer is installed."
echo -n "[/usr/local/rprod]  "
read dir
if [ "$dir" = "" ] ; then dir=/usr/local/rprod ; fi
if [ -d $dir -a -f $dir/bin/realproducer ] ; 
then
	sed s:/lib/libdl.so.2:\$REALDIR/lib/compat.so:g < $dir/bin/realproducer > /tmp/rppatch.$$ ; cp /tmp/rppatch.$$ $dir/bin/realproducer 
else
	echo "couldn't find RealProducer install in that location"
fi
