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.2.0a1" ]; 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.2.0a1.tar.gz -C ${INSTALL_ROOT}
67 # modify all *.la files
68 export LIGHT_ROOT_DIR=${PRODUCT_DIR}
69 modif_la_files ${PRODUCT_DIR}/lib/salome
75 export INSTALL_WORK=$2;
77 export INSTALL_ROOT=$4;
78 export PRODUCT_SEQUENCE=$5;
79 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="LIGHTBin" ; fi
80 export PRODUCT="LIGHT_3.2.0a1"
81 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
82 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}