From: Nicolas OTTON Date: Thu, 3 Mar 2022 10:25:11 +0000 (+0100) Subject: added version check to moving gmsh include directory X-Git-Tag: V9_9_0~155 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=35c602de81017332a193c87165ab04bc3eef4fa3;p=tools%2Fsat_salome.git added version check to moving gmsh include directory --- diff --git a/products/compil_scripts/gmsh-4.8.4.sh b/products/compil_scripts/gmsh-4.8.4.sh index fc0a0e9..5916f93 100755 --- a/products/compil_scripts/gmsh-4.8.4.sh +++ b/products/compil_scripts/gmsh-4.8.4.sh @@ -60,14 +60,16 @@ then fi echo -echo "*** copy all .h in sources to install" -cp -f --backup=numbered `find $SOURCE_DIR -name "*.h"` $PRODUCT_INSTALL/include/ && \ - mv $PRODUCT_INSTALL/include/gmsh/* $PRODUCT_INSTALL/include/ && \ - rmdir $PRODUCT_INSTALL/include/gmsh/ -if [ $? -ne 0 ] -then - echo "ERROR on copy" - exit 4 +if [ $VERSION == "V9_8_0" ]; then + echo "*** copy all .h in sources to install" + cp -f --backup=numbered `find $SOURCE_DIR -name "*.h"` $PRODUCT_INSTALL/include/ && \ + mv $PRODUCT_INSTALL/include/gmsh/* $PRODUCT_INSTALL/include/ && \ + rmdir $PRODUCT_INSTALL/include/gmsh/ + if [ $? -ne 0 ] + then + echo "ERROR on copy" + exit 4 + fi fi