#!/bin/sh

#
# Check if $HMPI_HOME is set
#
if [ "$HMPI_HOME" = "" ]; then
	echo "Variable HMPI_HOME pointing to HeteroMPI installation not set in the environment"
	exit 1
fi

echo "Uninstalling HeteroMPI"

/bin/rm -rf $HMPI_HOME/bin
/bin/rm -rf $HMPI_HOME/lib
/bin/rm -rf $HMPI_HOME/docs
/bin/rm -rf $HMPI_HOME/include
/bin/rm -rf $HMPI_HOME/h
/bin/rm -rf $HMPI_HOME/source
/bin/rm -rf $HMPI_HOME/scripts
/bin/rm -rf $HMPI_HOME/tests
/bin/rm -rf $HMPI_HOME/man
/bin/rm -rf $HMPI_HOME
