]> SALOME platform Git repositories - tools/install.git/blob - config_files/SAMPLES.sh
Salome HOME
Fix pb with OCCT 6.8.0 patch
[tools/install.git] / config_files / SAMPLES.sh
1 #!/bin/bash -noprofile
2
3 ####################################################################################
4 #  File      : SAMPLES.sh
5 #  Created   : Thu Dec 18 12:01:00 2002
6 #  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
7 #  Project   : SALOME
8 #  Module    : Installation Wizard
9 #  Copyright : 2002-2015 CEA
10 #
11 #  This script is the part of the SALOME installation procedure.
12 #
13 ####################################################################################
14
15 check_version(){
16 # There is no possibility to check version number
17 return 0
18 }
19
20 print_env_bin(){
21 return 1
22 }
23
24 print_env_src(){
25 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF 
26 #${DELIM} ${PRODUCT_TYPE}_src ${DELIM}
27 export DATA_DIR=\${INST_ROOT}/${PRODUCT_SRC}
28 ##
29 EOF
30 (test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
31 make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
32 }
33
34 try_preinstalled(){
35 try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
36 return $?
37 }
38
39 install_source()
40 {
41 make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
42 source ${INSTALL_WORK}/${SHRC}
43
44 check_jb tar xfz ${SRC_DIR}/SAMPLESsourcesV${SALOME_VERSION}.tar.gz -C ${INST_ROOT}
45
46 # to generate environment scripts
47 try_preinstalled
48 }
49
50 install_source_and_build()
51 {
52 install_source
53 }
54
55 install_binary()
56 {
57 install_source
58 }
59
60 source ./common.sh
61
62 export PROCEDURE=$1;
63 export INSTALL_WORK=$2;
64 export SOURCE_DIR=$3;
65 export INST_ROOT=$4;
66 export PRODUCT_SEQUENCE=$5;
67 export PRODUCT_TYPE=$6;
68 export INSTALL_PRODUCTS=$7;
69 SRC_DIR=$8;
70 shift
71 shift
72 SINGLE_DIR=$9;
73 export PRODUCT="SAMPLES_${SALOME_VERSION}"
74 export PRODUCT_SRC="SAMPLES_SRC_${SALOME_VERSION}"
75 export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT_SRC}
76 ${PROCEDURE}