]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
add script for linux asozinov/add_sam
authorsoz <soz@debian>
Mon, 19 Dec 2022 08:57:10 +0000 (03:57 -0500)
committersoz <soz@debian>
Mon, 19 Dec 2022 08:57:10 +0000 (03:57 -0500)
products/compil_scripts/sam.sh [new file with mode: 0755]

diff --git a/products/compil_scripts/sam.sh b/products/compil_scripts/sam.sh
new file mode 100755 (executable)
index 0000000..02c285d
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+echo ##########################################################################
+echo SAM
+echo ##########################################################################
+
+
+cd $SOURCE_DIR
+
+echo
+echo "*** mkdir" $PRODUCT_INSTALL
+mkdir -p $PRODUCT_INSTALL
+if [ $? -ne 0 ]
+then
+    echo "ERROR on mkdir"
+    exit 1
+fi
+
+echo
+echo "*** cp -r * " $PRODUCT_INSTALL
+cp -r sam $PRODUCT_INSTALL
+if [ $? -ne 0 ]
+then
+    echo "ERROR on cp"
+    exit 2
+fi
+
+echo
+echo "########## END"
+