Commit 14c95abd authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing installation

parent f48f4a45
......@@ -74,16 +74,31 @@ function remove_old()
fi
## Check the installed version of the dependencies
is_update=$(cat $1/BOOST/include/boost/version.hpp | grep "#define BOOST_VERSION 106000")
if [ x"$is_update" == x"" ]; then
echo "New boost version, removing the old one"
rm -rf $1/BOOST/include
rm -rf $1/BOOST/lib
rm -rf $1/BOOST
cat $1/BOOST/include/boost/version.hpp > /dev/null
if [ $? -eq 0 ]; then
is_update=$(cat $1/BOOST/include/boost/version.hpp | grep "#define BOOST_VERSION 106000")
if [ x"$is_update" == x"" ]; then
echo "\033[1;34;5m New boost version, removing the old one \033[0m"
sleep 3
rm -rf $1/BOOST/include
rm -rf $1/BOOST/lib
rm -rf $1/BOOST
fi
fi
##
cat $1/METIS/version
if [ $? -eq 0 ]; then
version=$(cat $1/METIS/version)
if [ x"$version" != x"1" ]; then
echo -e "\033[1;34;5m New METIS version, removing the old one \033[0m"
sleep 3
rm -rf $1/METIS/include
rm -rf $1/METIS/lib
rm -rf $1/METIS
fi
fi
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment