
#!/bin/sh

if [ ! -d ../../gearbox ]; then
   echo "Opposing Force is not installed (or is not in gearbox)"
   exit
fi

if [ ! -f ../../gearbox/dlls/HPB_bot_i486.so ]; then
   echo "HPB bot is NOT Installed"
   exit
fi

echo "Removing HPB_bot_i486.so from gearbox/dlls directory"
rm -f ../../gearbox/dlls/HPB_bot_i486.so
echo "Removing HPB_bot.cfg from gearbox directory"
rm -f ../../gearbox/HPB_bot.cfg
echo "Removing HPB_bot_names.txt from gearbox directory"
rm -f ../../gearbox/HPB_bot_names.txt
echo "Removing HPB_bot_chat.txt from gearbox directory"
rm -f ../../gearbox/HPB_bot_chat.txt
echo "Removing waypoint files (*.HPB_wp*) from gearbox/maps directory"
rm -f ../../gearbox/maps/*.HPB_wp*
echo "Renaming old_liblist.gam to liblist.gam in gearbox directory"
mv -f ../../gearbox/old_liblist.gam ../../gearbox/liblist.gam

echo "Done!"
