]> SALOME platform Git repositories - tools/install.git/blob - config_files/HXX2SALOMEDOC.sh
Salome HOME
Remove HappyDoc dependencies
[tools/install.git] / config_files / HXX2SALOMEDOC.sh
1 #!/bin/sh
2
3 check_version(){
4 # No way to check version!
5 return 0
6 }
7
8 print_env(){
9 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
10 #$DELIM ${PRODUCT_TYPE} $DELIM
11 export HXX2SALOMEDOC_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
12 export PATH=\${HXX2SALOMEDOC_ROOT_DIR}:\${PATH}
13 ##
14 EOF
15 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
16 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
17 }
18
19 install_source()
20 {
21 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
22 source ${INSTALL_WORK}/$SHRC
23
24 check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEDOCsourcesV3.2.0b1.tar.gz -C ${INSTALL_ROOT}
25
26 print_env
27 }
28
29 pickup_env()
30 {
31 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} ${PRODUCT_DIR}
32 }
33
34 export PROCEDURE=$1;
35 export INSTALL_WORK=$2;
36 export SOURCE_DIR=$3;
37 export INSTALL_ROOT=$4;
38 export PRODUCT_SEQUENCE=$5;
39 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HXX2SALOMEDOC" ; fi
40 export PRODUCT="HXX2SALOMEDOC_3.2.0b1"
41 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
42 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
43 source ./common.sh
44 $PROCEDURE