ncohafmuta-1.4.2/bot/
ncohafmuta-1.4.2/helpfiles/
ncohafmuta-1.4.2/lib/emailver/
ncohafmuta-1.4.2/tzinfo/Atlantic/
ncohafmuta-1.4.2/tzinfo/Brazil/
ncohafmuta-1.4.2/tzinfo/Chile/
ncohafmuta-1.4.2/tzinfo/Indian/
ncohafmuta-1.4.2/tzinfo/Mexico/
ncohafmuta-1.4.2/tzinfo/Mideast/
ncohafmuta-1.4.2/tzinfo/SystemV/
ncohafmuta-1.4.2/utils/
ncohafmuta-1.4.2/utils/code_fragments/new_config/
#!/bin/sh
# by Cygnus
# ncohafmuta@asteroid-b612.org
#

# The name of the talker binary or program
BINARY="server"

# The data directory and-or the debugging switch, both optional
CONFIG=$1
CONFIG2=$2

# Set to 0 if you dont want it to try and boot the robot
BOTON=0

# Link changes helpfile to CHANGES file in lib directory
echo "Linking changes..."
pushd helpfiles
if test -f "changes"
then
rm -f changes
fi
ln -s ../docs/CHANGES changes

# Run TOP in helpfiles directory to update topics helpfile
echo -n "Updating helpfiles list..."
./TOP
popd

echo "Starting the talker server..."
echo ""
if test "$CONFIG" = "config"
then
 ./$BINARY $CONFIG2
else
 ./$BINARY $CONFIG $CONFIG2
fi

# Start the bot if BOTON is not 0
	if test $BOTON != 0
	then
	pushd bot
	echo -n "Starting robot.."
         if test -f "./restart"
	 then
	  echo
	  ./restart
	 fi
	popd
	fi