From 35c602de81017332a193c87165ab04bc3eef4fa3 Mon Sep 17 00:00:00 2001 From: Nicolas OTTON Date: Thu, 3 Mar 2022 11:25:11 +0100 Subject: [PATCH] added version check to moving gmsh include directory --- products/compil_scripts/gmsh-4.8.4.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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 -- 2.39.2