#!/bin/sh
THISDIR=`dirname $0`
##########################################################################
# Change path to your favourite location
# IF YOU CHANGE IT, REMEMBER TO CHANGE IT IN 'src/tkAutoPPP' TOO !!
#
# WARNING: Older versions in the same directory will be replaced without
#          any warning.
###########################################################################

INSTALLPREFIX=/usr/local/bin
INSTALLDIR=${INSTALLPREFIX}/tkAutoPPP

###########################################################################
# WARNING: Older versions in the same directory will be replaced without
#          any warning.
###########################################################################

echo "Installing in ${INSTALLDIR}... (You probably have to be root)"
if ! test -e ${INSTALLDIR} ; then
   mkdirhier ${INSTALLDIR}
fi

cd src
install -m 755 connect get_host get_ip pppx tkAutoPPP ${INSTALLDIR}

echo
echo "Main installation complete."
echo "Now every user who wants to use tkAutoPPP should run "
echo "${THISDIR}/userinstall-sh."
echo
echo
