Commit f6522e41 authored by incardon's avatar incardon

Changed script to update BOOST and EIGEN

parent 982907e6
......@@ -76,10 +76,10 @@ function remove_old()
## Check the installed version of the dependencies
if [ -d $1/BOOST ]; then
is_update=$(cat $1/BOOST/include/boost/version.hpp | grep "#define BOOST_VERSION 106000")
is_update=$(cat $1/BOOST/include/boost/version.hpp | grep "#define BOOST_VERSION 106003")
if [ x"$is_update" == x"" ]; then
echo -e "\033[1;34;5m --------------------------------------------------------------------------- \033[0m"
echo -e "\033[1;34;5m Boost has been updated to 1.60, the component will be updated automatically \033[0m"
echo -e "\033[1;34;5m Boost has been updated to 1.63, the component will be updated automatically \033[0m"
echo -e "\033[1;34;5m --------------------------------------------------------------------------- \033[0m"
sleep 5
rm -rf $1/BOOST/include
......@@ -134,6 +134,18 @@ function remove_old()
rm -rf $1/HDF5
fi
fi
if [ -d $1/EIGEN ]; then
version=$(cat $1/EIGEN/version)
if [ x"$version" != x"1" ]; then
echo -e "\033[1;34;5m ---------------------------------------------------------------------- \033[0m"
echo -e "\033[1;34;5m EIGEN has been updated, the component will be updated automatically \033[0m"
echo -e "\033[1;34;5m ---------------------------------------------------------------------- \033[0m"
sleep 5
rm -rf $1/EIGEN/Eigen
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