#!/bin/sh
# Copyright (C) 2003-2008 SpeedSix Software Ltd.
#
# Uninstall SpeedSix Lenz Raptor for Autodesk M&E Systems (64 bit) on Burn.
#

echo
echo "Un-installing SpeedSix Lenz Raptor for Autodesk M&E Systems (64 bit) on Burn."
echo "=============================================================================="
echo

unalias cp >& /dev/null
unalias rm >& /dev/null
unalias mv >& /dev/null

if [ "`whoami`" != "root" ]; then
        echo "You need to be root to run this script. You can become root"
        echo "by using the command su. Please do this, then restart the"
        echo "un-installation with ./uninstall-discreet-burn-lenz-raptor-64"
        exit 1
fi

echo
echo -n "Are you sure you want to un-install? [y or n] > "
read inp
case $inp in
    y*) break;;
    *) echo "OK ... leaving everything installed ... "; exit 1;;
esac
echo

#
# First remove the specific Proxy Images:
#
rm -f /usr/discreet/sparks/SpeedSix_V1.2_Raptors_64/6-CrashZoom.spark_x86_64.p
rm -f /usr/discreet/sparks/SpeedSix_V1.2_Raptors_64/6-Flare.spark_x86_64.p
rm -f /usr/discreet/sparks/SpeedSix_V1.2_Raptors_64/6-LensCorrect.spark_x86_64.p
rm -f /usr/discreet/sparks/SpeedSix_V1.2_Raptors_64/6-LensFlare.spark_x86_64.p
rm -f /usr/discreet/sparks/SpeedSix_V1.2_Raptors_64/6-RackDefocus.spark_x86_64.p
#
# Now remove the package.
#
rpm -ev discreet-burn-lenz-raptor-64

echo
echo "Un-install completed."
echo
exit 0
