]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #34285: openturns - use symbolic link and use rm instead of rmdir spns/34285
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 12 Apr 2023 09:14:32 +0000 (11:14 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 12 Apr 2023 09:14:32 +0000 (11:14 +0200)
products/compil_scripts/openturns-1.20.1.sh

index 4e960901245fe8bbfc370a973de0ed6dd95572ae..e9bd98859a1faed402e7d933ebbeb8796ce97bb3 100755 (executable)
@@ -159,19 +159,17 @@ fi
 if [ -d "${PRODUCT_INSTALL}/lib64" ]; then
     echo "WARNING: moving lib64 to lib"
     mv ${PRODUCT_INSTALL}/lib64/* ${PRODUCT_INSTALL}/lib/
-    rmdir ${PRODUCT_INSTALL}/lib64
+    rm -rf ${PRODUCT_INSTALL}/lib64
 elif [ -d "${PRODUCT_INSTALL}/local/lib64" ]; then
     echo "WARNING: moving local/lib64 to lib"
     mv ${PRODUCT_INSTALL}/local/lib64/* ${PRODUCT_INSTALL}/lib/
-    rmdir ${PRODUCT_INSTALL}/local/lib64
+    rm -rf ${PRODUCT_INSTALL}/local/lib64
 fi
 
 if [[ -d "${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages" ]]; then
     echo "WARNING: renaming ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages as ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages"
     cd  ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}
-    ls -l
-    mv dist-packages site-packages
-    ls -l
+    ln -sf dist-packages site-packages
     cd  $BUILD_DIR/openturns
 fi