#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${CALCULATOR_ROOT_DIR}" ]; then
}
print_env(){
-
if test `uname -m` = "x86_64" ; then
export LIB_PREFIX=64
else
export LIB_PREFIX=""
fi
-
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export CALCULATOR_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export CALCULATOR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/CALCULATORbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/CALCULATORbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export CALCULATOR_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="CALCULATORbin" ; fi
-export PRODUCT="CALCULATOR_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=CALCULATOR_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${CALCULATOR_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${COMPONENT_ROOT_DIR}" ]; then
}
print_env(){
-
if test `uname -m` = "x86_64" ; then
export LIB_PREFIX=64
else
export LIB_PREFIX=""
fi
-
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export COMPONENT_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export COMPONENT_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/COMPONENTbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/COMPONENTbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export COMPONENT_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="COMPONENTbin" ; fi
-export PRODUCT="COMPONENT_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=COMPONENT_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${COMPONENT_SRC_DIR}" ]; then
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/DOCUMENTATION-V3.2.9.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/DOCUMENTATION-V3.2.10.tar.gz -C ${INSTALL_ROOT}
print_env
}
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${GEOM_ROOT_DIR}" ]; then
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export GEOM_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export GEOM_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/GEOMbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/GEOMbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export GEOM_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GEOMbin" ; fi
-export PRODUCT="GEOM_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=GEOM_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${GEOM_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${GHS3DPLUGIN_ROOT_DIR}" ]; then
return 0
fi
fi
- return 0
fi
return 1
}
print_env(){
-
if test `uname -m` = "x86_64" ; then
export LIB_PREFIX=64
else
export LIB_PREFIX=""
fi
-
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export GHS3DPLUGIN_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export GHS3DPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/GHS3DPLUGINbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/GHS3DPLUGINbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export GHS3DPLUGIN_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GHS3DPLUGINbin" ; fi
-export PRODUCT="GHS3DPLUGIN_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=GHS3DPLUGIN_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${GHS3DPLUGIN_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${GUI_ROOT_DIR}" ]; then
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export GUI_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export GUI_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/GUIbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/GUIbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export GUI_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GUIbin" ; fi
-export PRODUCT="GUI_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=GUI_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${GUI_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${HELLO_ROOT_DIR}" ]; then
- if [ -f ${HELLO_ROOT_DIR}/bin/salome/VERSION ]; then
+ check_lib_version VERSION ${HELLO_ROOT_DIR}/bin/salome
+ if [ "$?" -eq "0" ]; then
ver=`cat ${HELLO_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
if [ "$ver" = "${VERSION}" ]; then
return 0
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export HELLO_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export HELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/HELLObinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/HELLObinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export HELLO_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HELLObin" ; fi
-export PRODUCT="HELLO_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=HELLO_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${HELLO_SRC_DIR}" ]; then
makedir ${PRODUCT_DIR}
-check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEsourcesV3.2.9.tar.gz -C ${INSTALL_WORK}
+check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEsourcesV3.2.10.tar.gz -C ${INSTALL_WORK}
cd ${PRODUCT_WORK}
cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF
-------------------
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEbinariesV3.2.9.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEbinariesV3.2.10.tar.gz -C ${INSTALL_ROOT}
print_env
}
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HXX2SALOME" ; fi
-export PRODUCT="HXX2SALOME_3.2.9"
+export PRODUCT="HXX2SALOME_3.2.10"
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEDOCsourcesV3.2.9.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEDOCsourcesV3.2.10.tar.gz -C ${INSTALL_ROOT}
print_env
}
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HXX2SALOMEDOC" ; fi
-export PRODUCT="HXX2SALOMEDOC_3.2.9"
+export PRODUCT="HXX2SALOMEDOC_3.2.10"
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${KERNEL_ROOT_DIR}" ]; then
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export KERNEL_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export KERNEL_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/KERNELbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/KERNELbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# The next two symbolic links are created only for Red Hat 9 and Scientific Linux 3.0.5
if [ -f /lib/libcrypto.so.0.9.7a ]; then
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="KERNELbin" ; fi
-export PRODUCT="KERNEL_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=KERNEL_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${KERNEL_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${LIGHT_ROOT_DIR}" ]; then
- if [ -f ${LIGHT_ROOT_DIR}/bin/salome/VERSION ]; then
+ check_lib_version VERSION ${LIGHT_ROOT_DIR}/bin/salome
+ if [ "$?" -eq "0" ]; then
ver=`cat ${LIGHT_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
if [ "$ver" = "${VERSION}" ]; then
return 0
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export LIGHT_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export LIGHT_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/LIGHTbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/LIGHTbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export LIGHT_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="LIGHTbin" ; fi
-export PRODUCT="LIGHT_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=LIGHT_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${LIGHT_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${MEDWOGUI_ROOT_DIR}" ]; then
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MEDWOGUI_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export MEDWOGUI_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/MEDWOGUIbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/MEDWOGUIbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export MEDWOGUI_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="MEDWOGUIbin" ; fi
-export PRODUCT="MEDWOGUI_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=MEDWOGUI_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${MEDWOGUI_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${MED_ROOT_DIR}" ]; then
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MED_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export MED_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/MEDbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/MEDbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export MED_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="MEDbin" ; fi
-export PRODUCT="MED_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=MED_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${MED_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${NETGENPLUGIN_ROOT_DIR}" ]; then
return 0
fi
fi
- return 0
fi
return 1
}
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export NETGENPLUGIN_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export NETGENPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/NETGENPLUGINbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/NETGENPLUGINbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export NETGENPLUGIN_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="NETGENPLUGINbin" ; fi
-export PRODUCT="NETGENPLUGIN_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=NETGENPLUGIN_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${NETGENPLUGIN_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${PYCALCULATOR_ROOT_DIR}" ]; then
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export PYCALCULATOR_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export PYCALCULATOR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/PYCALCULATORbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/PYCALCULATORbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export PYCALCULATOR_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="PYCALCULATORbin" ; fi
-export PRODUCT="PYCALCULATOR_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=PYCALCULATOR_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${PYCALCULATOR_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${PYHELLO_ROOT_DIR}" ]; then
- if [ -f ${PYHELLO_ROOT_DIR}/bin/salome/VERSION ]; then
+ check_lib_version VERSION ${PYHELLO_ROOT_DIR}/bin/salome
+ if [ "$?" -eq "0" ]; then
ver=`cat ${PYHELLO_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
if [ "$ver" = "${VERSION}" ]; then
return 0
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export PYHELLO_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export PYHELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/PYHELLObinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/PYHELLObinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export PYHELLO_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="PYHELLObin" ; fi
-export PRODUCT="PYHELLO_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=PYHELLO_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${PYHELLO_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${RANDOMIZER_ROOT_DIR}" ]; then
- if [ -f ${RANDOMIZER_ROOT_DIR}/bin/salome/VERSION ]; then
+ check_lib_version VERSION ${RANDOMIZER_ROOT_DIR}/bin/salome
+ if [ "$?" -eq "0" ]; then
ver=`cat ${RANDOMIZER_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
if [ "$ver" = "${VERSION}" ]; then
return 0
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export RANDOMIZER_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export RANDOMIZER_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/RANDOMIZERbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/RANDOMIZERbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export RANDOMIZER_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="RANDOMIZERbin" ; fi
-export PRODUCT="RANDOMIZER_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=RANDOMIZER_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${RANDOMIZER_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
# There is no possibility to check version number
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${SIERPINSKY_ROOT_DIR}" ]; then
- if [ -f ${SIERPINSKY_ROOT_DIR}/bin/salome/VERSION ]; then
+ check_lib_version VERSION ${SIERPINSKY_ROOT_DIR}/bin/salome
+ if [ "$?" -eq "0" ]; then
ver=`cat ${SIERPINSKY_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
if [ "$ver" = "${VERSION}" ]; then
return 0
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export SIERPINSKY_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export SIERPINSKY_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/SIERPINSKYbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/SIERPINSKYbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export SIERPINSKY_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="SIERPINSKYbin" ; fi
-export PRODUCT="SIERPINSKY_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=SIERPINSKY_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${SIERPINSKY_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${SMESH_ROOT_DIR}" ]; then
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export SMESH_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export SMESH_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/SMESHbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/SMESHbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export SMESH_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="SMESHbin" ; fi
-export PRODUCT="SMESH_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=SMESH_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${SMESH_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${SUPERV_ROOT_DIR=}" ]; then
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export SUPERV_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export SUPERV_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/SUPERVbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/SUPERVbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export SUPERV_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="SUPERVbin" ; fi
-export PRODUCT="SUPERV_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=SUPERV_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${SUPERV_SRC_DIR}" ]; then
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${VISU_ROOT_DIR}" ]; then
else
export LIB_PREFIX=""
fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+if [ "$SINGLE_DIR" == "1" ] ; then
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export VISU_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export VISU_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
fi
##
EOF
+fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
}
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/VISUbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/VISUbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
# modify all *.la files
export VISU_ROOT_DIR=${PRODUCT_DIR}
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="VISUbin" ; fi
-export PRODUCT="VISU_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+ export PRODUCT=SALOME_${VERSION}
+else
+ export PRODUCT=VISU_${VERSION}
+fi
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
#
####################################################################################
-VERSION="3.2.9"
+VERSION="3.2.10"
check_version(){
if [ -n "${VISU_SRC_DIR}" ]; then
####################################################################################
export DELIM="------"
+export SDIR_DELIM="### to be removed ###"
export SHRC="salome.sh"
export CSHRC="salome.csh"
product_sequence="$2"
for i in $product_sequence ; do
env_file=${install_work}/env_${i}.sh
- ( test -e $env_file && cat $env_file >> ${install_work}/$SHRC 2>/dev/null )
+ if [ -e $env_file ] ; then
+ grep "$SDIR_DELIM" $env_file >& /dev/null
+ if [ $? -eq 0 ] ; then
+ if [ "$SINGLE_ROOT_DIR" == "1" ] ; then
+ cat $env_file | grep -v "$SDIR_DELIM" >> ${install_work}/$SHRC 2>/dev/null
+ else
+ cat $env_file | sed -e "s/$SDIR_DELIM//g" >> ${install_work}/$SHRC 2>/dev/null
+ fi
+ SINGLE_ROOT_DIR=1
+ else
+ cat $env_file >> ${install_work}/$SHRC 2>/dev/null
+ fi
+ fi
done
# 2. writing global functions to _salome.sh file
rm -f ${INSTALL_WORK}/_tmp1 ${INSTALL_WORK}/_tmp2
-if [ $# -eq 4 ] ; then
+if [ $# -gt 3 ] ; then
product_dir=$4
if [ -e ${product_dir} ] ; then
cp -f ${install_work}/_$SHRC ${product_dir}/$SHRC
fi
fi
done
-
+unset SINGLE_ROOT_DIR
}
#try use already existing product