]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
added version check to moving gmsh include directory
authorNicolas OTTON <nicolaS.otton@cea.fr>
Thu, 3 Mar 2022 10:25:11 +0000 (11:25 +0100)
committerNicolas OTTON <nicolaS.otton@cea.fr>
Thu, 3 Mar 2022 10:25:11 +0000 (11:25 +0100)
products/compil_scripts/gmsh-4.8.4.sh

index fc0a0e9822975e7023c4220d6268be1fd8073e61..5916f93a7b3b74c6430f3ea28ab89a9b097b3a73 100755 (executable)
@@ -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