#!/bin/bash


echo "starting the openMosixview installation"
echo 


if [[ $QTDIR == "" ]]; then
	echo "you have to export the QT-installation directory using"
	echo "e.g. export QTDIR=/usr/lib/qt-2.3.0"
	echo;
	exit 1
fi

echo "Now compiling openMosixview"
echo 

make
make install

# installation finish
echo
echo "Installation ended successfully (if there was no error)"
echo 
echo "now type openmosixview <ENTER> and have fun!"
echo "(do not forget to copy the openmosixprocs binary to /usr/bin of each"
echo "your cluster-nodes e.g"
echo " rcp /usr/bin/openmosixprocs hostname_of_node:/usr/bin"
echo "or if you use SSH"
echo " scp /usr/bin/openmosixprocs hostname_of_node:/usr/bin"
echo "reply problems during installation to mosixview@t-online.de"
echo "Thanks"
echo

echo  "This openMosixview version contains a smart 3d add-on,"
echo "the 3dmosmon. It is a nice 3d view of your cluster."
echo "(many thanks to Johnny Cache, the Author of 3dmosmon)"
echo
echo "If you want to install the 3dmosmon add-on please execute:"
echo 
echo "cd 3dmon"
echo "./setup"
echo 
echo "The setup-procedure will guide you through the installation."



