
#!/bin/sh

if [ ! -d ../../valve ]; then
   echo "Half-Life is not installed (or is not in valve)"
   exit
fi

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

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

echo "Done!"
