#!/bin/sh
#
# IPTraf Setup System
# Written by Gerard Paul Java <riker@seul.org>
#
# This script simply invokes the 'make install' procedure in the src/
# directory.
#
# If started with the -c command-line option, the software will be
# recompiled from the sources before installation.
#
# The actual installation scripts are in the src/ directory.
#
VERSION=`cat src/version`
clear
echo "====================================================================="
echo " IPTraf Version $VERSION Setup"
echo " Target Platform: $(uname -s)/$(uname -m)"
echo "====================================================================="
echo
if [ "$1" = "-c" ]; then
    /usr/bin/make -C src clean
    /usr/bin/make -C src all
fi

/usr/bin/make -C src install

