]> SALOME platform Git repositories - tools/install.git/blob - config_files/SAMPLES.sh
Salome HOME
1) getSize() just returns required size that read from XML now;
[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-2007 CEA
10 #
11 #  This script is the part of the SALOME installation procedure.
12 #
13 ####################################################################################
14
15 VERSION="3.2.7"
16
17 check_version(){
18 # There is no possibility to check version number
19 return 0
20 }
21
22 print_env_bin(){
23 return 1
24 }
25
26 print_env_src(){
27 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF 
28 #$DELIM ${PRODUCT_TYPE}_src $DELIM
29 export DATA_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
30 ##
31 EOF
32 (test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
33 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
34 }
35
36 try_preinstalled(){
37 try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
38 return $?
39 }
40
41 install_source()
42 {
43 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
44 source ${INSTALL_WORK}/$SHRC
45
46 check_jb tar xfz ${SRC_DIR}/SAMPLESsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
47
48 # to generate environment scripts
49 try_preinstalled
50 }
51
52 install_source_and_build()
53 {
54 install_source
55 }
56
57 install_binary()
58 {
59 install_source
60 }
61
62 export PROCEDURE=$1;
63 export INSTALL_WORK=$2;
64 export SOURCE_DIR=$3;
65 export INSTALL_ROOT=$4;
66 export PRODUCT_SEQUENCE=$5;
67 export PRODUCT_TYPE=$6;
68 export INSTALL_PRODUCTS=$7;
69 SRC_DIR=$8;
70 export PRODUCT="SAMPLES_${VERSION}"
71 export PRODUCT_SRC="SAMPLES_SRC_${VERSION}"
72 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
73 export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
74 source ./common.sh
75 $PROCEDURE