
#!/bin/sh

if [ ! -d ../../tfc ]; then
   echo "Team Fortress 1.5 is not installed (or is not in tfc)"
   exit
fi

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

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

echo "Done!"
