Salome HOME
spns #29664: omniORB: fix python path
[tools/sat_salome.git] / products / compil_scripts / gmsh-4.8.4.sh
index fc0a0e9822975e7023c4220d6268be1fd8073e61..0bed6cb9d409002eac47430b06864a39bd393771 100755 (executable)
@@ -60,17 +60,20 @@ 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 [ -n "$SALOME_GMSH_HEADERS_STD" ]; then
+    echo "Using standard directory structure"
+else
+    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
 
-
 echo
 echo "########## END"