#!/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 ALREADY installed.  Run Remove first, then run Install"
   exit
fi

if [ ! -d ../../tfc/maps ]; then
   mkdir ../../tfc/maps
fi

echo "Copying HPB_bot_i486.so into tfc/dlls directory"
cp ../HPB_bot_i486.so ../../tfc/dlls
echo "Copying HPB_bot.cfg into tfc directory"
cp HPB_bot.cfg ../../tfc
echo "Copying HPB_bot_names.txt into tfc directory"
cp ../HPB_bot_names.txt ../../tfc
echo "Copying HPB_bot_chat.txt into tfc directory"
cp ../HPB_bot_chat.txt ../../tfc
echo "Copying liblist.gam and old_liblist.gam into tfc directory"
cp *.gam ../../tfc
echo "Copying waypoint files (*.HPB_wpt) into tfc/maps directory"
cp *.HPB_wpt ../../tfc/maps

echo "Done!"
