#!/bin/sh
# This is what you need to do.  Either run this, or do it by hand.
# contact tadpol@tadpol.org for questions about this plugin.

# make sure quakestat is there
# It might be qstat instead of quakstat
which quakestat >/dev/null || echo "No quakestat command!" && exit 1

# make sure awk is there.
which awk >/dev/null || echo "No awk command!" && exit 1

# if you don't have ps or grep, just go crawl under a rock and die.

# build it.
make

# install it
#  If you're not able to be root, do  make install_home
make install

# Restart gkrellm
ps ax | grep gkrellm | grep -v grep | awk '{print $1;}' | xargs kill
gkrellm >/dev/null 2>/dev/null &
