#!/bin/sh
#
# starts Armagetron master server query tool from the installation directory

INSTALL=/usr/lib/games/armagetron

if [ ! -r $HOME/.armagetron ] ; then
   mkdir $HOME/.armagetron
fi

if [  "x$1" = "x-h" ] ; then
    echo -e "\n\nTo uninstall Armagetron, type armagetron --uninstal."
fi

if [  "x$1" = "x--uninstall" ] ; then
    $INSTALL/bin/uninstall
else
    $INSTALL/bin/astat --datadir $INSTALL --configdir /etc/armagetron --userdatadir $HOME/.armagetron $*
fi

