#!/bin/sh

# The Q Bot 3.99 - Installation Program.
# Copyright(c) 2003 by commx (commx@tiscali.de).

echo ""
echo "Starting Q Installation..."
echo "Copying Commands to file.."
ls commands > Commands
echo "Generating Chantype file.."
touch chantype
echo "Generating maxuser file.."
touch max_users
echo "Generating user-file.."
touch users
echo "Generating channel-file.."
touch channels
echo "Generating gline-file.."
touch gline
echo "Generating trust-file.."
touch trusted

echo "Compiling Q..."
make
echo "Changing to commands folder.."
cd commands
echo "Installing Commands.."
make
make install
cd ../

# Add a Channel to the Channels file
echo "#feds" > channels
echo "Adding a Channel to chanfile.."
echo "Editing Q-Startfile.."
vi Q
./Q
echo "Q was started. Installation successfully.

# Installation finished :)
