4 if [ -n "${LIGHT_ROOT_DIR}" ]; then
5 if [ -f ${LIGHT_ROOT_DIR}/bin/salome/VERSION ]; then
6 ver=`cat ${LIGHT_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
7 if [ "$ver" = "3.1.0" ]; then
16 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
17 #$DELIM ${PRODUCT_TYPE} $DELIM
18 export LIGHT_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
19 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
20 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
21 export LD_LIBRARY_PATH=\${LIGHT_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
26 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
27 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
30 # looks for the native product and collects it's environment (used by make_env())
33 if [ $? -eq 0 ] ; then
34 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
35 #$DELIM ${PRODUCT_TYPE} $DELIM
36 export LIGHT_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
37 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
38 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
39 export LD_LIBRARY_PATH=\${LIGHT_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
44 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
51 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
62 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
63 source ${INSTALL_WORK}/$SHRC
65 check_jb tar xfz ${SOURCE_DIR}/LIGHTbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
67 # modify all *.la files
68 modif_la_files ${PRODUCT_DIR}/lib/salome
74 export INSTALL_WORK=$2;
76 export INSTALL_ROOT=$4;
77 export PRODUCT_SEQUENCE=$5;
78 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="LIGHTBin" ; fi
79 export PRODUCT="LIGHT_3.1.0"
80 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
81 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}