diff --git a/script/remove_old b/script/remove_old index 69df71451c3f69e0ba1c8644bc9beb3752aae691..0fc2ad0f79f7fbb6f3ed821925d77dcf120b6e0b 100755 --- a/script/remove_old +++ b/script/remove_old @@ -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 + }