--- /dev/null
+#!/bin/bash -noprofile
+
+####################################################################################
+# File : BLSURFPLUGIN_BIN.sh
+# Created : Thu Dec 18 12:01:00 2002
+# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+# Project : SALOME
+# Module : Installation Wizard
+# Copyright : 2002-2007 CEA
+#
+# This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${BLSURFPLUGIN_ROOT_DIR}" ]; then
+ if [ -f ${BLSURFPLUGIN_ROOT_DIR}/bin/salome/VERSION ]; then
+ ver=`cat ${BLSURFPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
+ if [ "$ver" = "${VERSION}" ]; then
+ return 0
+ fi
+ fi
+elif [ -n "${BLSURFPLUGIN_SRC_DIR}" ]; then
+check_version(){
+ check_salome_src_version BLSURFPLUGIN_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
+}
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export BLSURFPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+ if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+ export PATH=\${BLSURFPLUGIN_ROOT_DIR}/bin/salome:\${PATH}
+ export LD_LIBRARY_PATH=\${BLSURFPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
+ export PYTHONPATH=\${BLSURFPLUGIN_ROOT_DIR}/bin/salome:\${BLSURFPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+ fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export BLSURFPLUGIN_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/BLSURFPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+ cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT BLSURFPLUGIN
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+ test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+ test -d ${INSTALL_ROOT}/"BLSURFPLUGIN_BUILD" && rm -fr ${INSTALL_ROOT}/"BLSURFPLUGIN_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+# Binaries for this module is not delivered
+install_source
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="BLSURFPLUGIN_${VERSION}"
+export PRODUCT_SRC="BLSURFPLUGIN_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${CALCULATOR_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${CALCULATOR_SRC_DIR}" ]; then
- if [ -f ${CALCULATOR_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${CALCULATOR_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version CALCULATOR_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${COMPONENT_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${COMPONENT_SRC_DIR}" ]; then
- if [ -f ${COMPONENT_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${COMPONENT_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version COMPONENT_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
# There is no possibility to check version number
--- /dev/null
+#!/bin/bash -noprofile
+
+####################################################################################
+# File : FILTER_BIN.sh
+# Created : Thu Dec 18 12:01:00 2002
+# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+# Project : SALOME
+# Module : Installation Wizard
+# Copyright : 2002-2007 CEA
+#
+# This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${FILTER_ROOT_DIR}" ]; then
+ if [ -f ${FILTER_ROOT_DIR}/bin/salome/VERSION ]; then
+ ver=`cat ${FILTER_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
+ if [ "$ver" = "${VERSION}" ]; then
+ return 0
+ fi
+ fi
+elif [ -n "${FILTER_SRC_DIR}" ]; then
+ check_salome_src_version FILTER_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export FILTER_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+ if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+ export PATH=\${FILTER_ROOT_DIR}/bin/salome:\${PATH}
+ export PYTHONPATH=\${FILTER_ROOT_DIR}/bin/salome:\${FILTER_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+ fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export FILTER_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/FILTERsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+ cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT FILTER
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+ test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+ test -d ${INSTALL_ROOT}/"FILTER_BUILD" && rm -fr ${INSTALL_ROOT}/"FILTER_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/FILTERbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/FILTERsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export FILTER_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="FILTER_${VERSION}"
+export PRODUCT_SRC="FILTER_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${GEOM_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${GEOM_SRC_DIR}" ]; then
- if [ -f ${GEOM_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${GEOM_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version GEOM_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
fi
return 0
elif [ -n "${GHS3DPLUGIN_SRC_DIR}" ]; then
- if [ -f ${GHS3DPLUGIN_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${GHS3DPLUGIN_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version GHS3DPLUGIN_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
--- /dev/null
+#!/bin/bash -noprofile
+
+####################################################################################
+# File : GHS3DPRLPLUGIN_BIN.sh
+# Created : Thu Dec 18 12:01:00 2002
+# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+# Project : SALOME
+# Module : Installation Wizard
+# Copyright : 2002-2007 CEA
+#
+# This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${GHS3DPRLPLUGIN_ROOT_DIR}" ]; then
+ if [ -f ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome/VERSION ]; then
+ ver=`cat ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
+ if [ "$ver" = "${VERSION}" ]; then
+ return 0
+ fi
+ fi
+elif [ -n "${GHS3DPRLPLUGIN_SRC_DIR}" ]; then
+ check_salome_src_version GHS3DPRLPLUGIN_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export GHS3DPRLPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+ if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+ export PATH=\${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome:\${PATH}
+ export PYTHONPATH=\${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome:\${GHS3DPRLPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+ fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export GHS3DPRLPLUGIN_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/GHS3DPRLPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+ cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT GHS3DPRLPLUGIN
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+ test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+ test -d ${INSTALL_ROOT}/"GHS3DPRLPLUGIN_BUILD" && rm -fr ${INSTALL_ROOT}/"GHS3DPRLPLUGIN_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/GHS3DPRLPLUGINbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/GHS3DPRLPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export GHS3DPRLPLUGIN_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="GHS3DPRLPLUGIN_${VERSION}"
+export PRODUCT_SRC="GHS3DPRLPLUGIN_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${GUI_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${GUI_SRC_DIR}" ]; then
- if [ -f ${GUI_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${GUI_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version GUI_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${HELLO_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${HELLO_SRC_DIR}" ]; then
- if [ -f ${HELLO_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${HELLO_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version HELLO_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
# No way to check version!
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
# No way to check version!
--- /dev/null
+#!/bin/bash -noprofile
+
+####################################################################################
+# File : HexoticPLUGIN_BIN.sh
+# Created : Thu Dec 18 12:01:00 2002
+# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+# Project : SALOME
+# Module : Installation Wizard
+# Copyright : 2002-2007 CEA
+#
+# This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${HexoticPLUGIN_ROOT_DIR}" ]; then
+ if [ -f ${HexoticPLUGIN_ROOT_DIR}/bin/salome/VERSION ]; then
+ ver=`cat ${HexoticPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
+ if [ "$ver" = "${VERSION}" ]; then
+ return 0
+ fi
+ fi
+elif [ -n "${HexoticPLUGIN_SRC_DIR}" ]; then
+ check_salome_src_version HexoticPLUGIN_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export HexoticPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+ if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+ export PATH=\${HexoticPLUGIN_ROOT_DIR}/bin/salome:\${PATH}
+ export PYTHONPATH=\${HexoticPLUGIN_ROOT_DIR}/bin/salome:\${HexoticPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+ fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export HexoticPLUGIN_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/HexoticPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+ cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT HexoticPLUGIN
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+ test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+ test -d ${INSTALL_ROOT}/"HexoticPLUGIN_BUILD" && rm -fr ${INSTALL_ROOT}/"HexoticPLUGIN_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/HexoticPLUGINbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/HexoticPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export HexoticPLUGIN_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="HexoticPLUGIN_${VERSION}"
+export PRODUCT_SRC="HexoticPLUGIN_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${KERNEL_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${KERNEL_SRC_DIR}" ]; then
- if [ -f ${KERNEL_SRC_DIR}/configure.ac ]; then
- ver=`grep -E "^VERSION=" ${KERNEL_SRC_DIR}/configure.ac | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version KERNEL_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
--- /dev/null
+#!/bin/bash -noprofile
+
+VERSION=4.0.0
+
+check_version(){
+ check_salome_src_version KERNEL_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
+}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${LIGHT_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${LIGHT_SRC_DIR}" ]; then
- if [ -f ${LIGHT_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${LIGHT_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version LIGHT_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${MED_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${MED_SRC_DIR}" ]; then
- if [ -f ${MED_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${MED_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version MED_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
--- /dev/null
+#!/bin/bash -noprofile
+
+####################################################################################
+# File : MULTIPR_BIN.sh
+# Created : Thu Dec 18 12:01:00 2002
+# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+# Project : SALOME
+# Module : Installation Wizard
+# Copyright : 2002-2007 CEA
+#
+# This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${MULTIPR_ROOT_DIR}" ]; then
+ if [ -f ${MULTIPR_ROOT_DIR}/bin/salome/VERSION ]; then
+ ver=`cat ${MULTIPR_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
+ if [ "$ver" = "${VERSION}" ]; then
+ return 0
+ fi
+ fi
+elif [ -n "${MULTIPR_SRC_DIR}" ]; then
+ check_salome_src_version MULTIPR_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MULTIPR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+ if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+ export PATH=\${MULTIPR_ROOT_DIR}/bin/salome:\${PATH}
+ export PYTHONPATH=\${MULTIPR_ROOT_DIR}/bin/salome:\${MULTIPR_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+ fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export MULTIPR_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/MULTIPRsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+ cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT MULTIPR
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+ test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+ test -d ${INSTALL_ROOT}/"MULTIPR_BUILD" && rm -fr ${INSTALL_ROOT}/"MULTIPR_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/MULTIPRbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/MULTIPRsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export MULTIPR_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="MULTIPR_${VERSION}"
+export PRODUCT_SRC="MULTIPR_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${NETGENPLUGIN_ROOT_DIR}" ]; then
fi
return 0
elif [ -n "${NETGENPLUGIN_SRC_DIR}" ]; then
- if [ -f ${NETGENPLUGIN_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${NETGENPLUGIN_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version NETGENPLUGIN_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${PYCALCULATOR_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${PYCALCULATOR_SRC_DIR}" ]; then
- if [ -f ${PYCALCULATOR_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${PYCALCULATOR_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version PYCALCULATOR_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${PYHELLO_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${PYHELLO_SRC_DIR}" ]; then
- if [ -f ${PYHELLO_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${PYHELLO_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version PYHELLO_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${RANDOMIZER_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${RANDOMIZER_SRC_DIR}" ]; then
- if [ -f ${RANDOMIZER_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${RANDOMIZER_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version RANDOMIZER_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
# There is no possibility to check version number
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${SIERPINSKY_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${SIERPINSKY_SRC_DIR}" ]; then
- if [ -f ${SIERPINSKY_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${SIERPINSKY_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version SIERPINSKY_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${SMESH_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${SMESH_SRC_DIR}" ]; then
- if [ -f ${SMESH_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${SMESH_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version SMESH_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${SUPERV_ROOT_DIR=}" ]; then
fi
fi
elif [ -n "${SUPERV_SRC_DIR}" ]; then
- if [ -f ${SUPERV_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${SUPERV_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version SUPERV_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
#
####################################################################################
-VERSION="3.2.7"
+VERSION="4.0.0"
check_version(){
if [ -n "${VISU_ROOT_DIR}" ]; then
fi
fi
elif [ -n "${VISU_SRC_DIR}" ]; then
- if [ -f ${VISU_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${VISU_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
- if [ "$ver" = "${VERSION}" ]; then
- return 0
- fi
- fi
+ check_salome_src_version VISU_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
fi
return 1
}
--- /dev/null
+#!/bin/bash -noprofile
+
+####################################################################################
+# File : YACS_BIN.sh
+# Created : Thu Dec 18 12:01:00 2002
+# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+# Project : SALOME
+# Module : Installation Wizard
+# Copyright : 2002-2007 CEA
+#
+# This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${YACS_ROOT_DIR}" ]; then
+ if [ -f ${YACS_ROOT_DIR}/bin/salome/VERSION ]; then
+ ver=`cat ${YACS_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
+ if [ "$ver" = "${VERSION}" ]; then
+ return 0
+ fi
+ fi
+elif [ -n "${YACS_SRC_DIR}" ]; then
+ check_salome_src_version YACS_SRC_DIR $VERSION
+ if [ $? -eq 0 ] ; then return 0 ; fi
+ return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export YACS_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+ if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+ export PATH=\${YACS_ROOT_DIR}/bin/salome:\${PATH}
+ export PYTHONPATH=\${YACS_ROOT_DIR}/bin/salome:\${YACS_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+ fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export YACS_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/YACSsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+ cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT YACS
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+ test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+ test -d ${INSTALL_ROOT}/"YACS_BUILD" && rm -fr ${INSTALL_ROOT}/"YACS_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/YACSbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/YACSsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export YACS_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="YACS_${VERSION}"
+export PRODUCT_SRC="YACS_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE
export SHRC="salome.sh"
export CSHRC="salome.csh"
+
+#this function takes several parameters
+#first parameter contains path to module source filder
+#second parameters is value of $VERSION variables form MODULE.sh file
+
+check_salome_src_version(){
+root_dir=`printenv $1`
+module_version=$2
+
+if [ -n "$root_dir" ]; then
+ cfg_file=configure.ac
+ if [ ! -f ${root_dir}/${cfg_file} ] ; then
+ cfg_file=configure.in.base
+ fi
+ if [ -f ${root_dir}/${cfg_file} ] ; then
+ ver=`grep -e "^AC_INIT" ${root_dir}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
+ if [ "$ver" = "${module_version}" ]; then
+ return 0
+ fi
+ fi
+fi
+return 1
+}
+
#this function takes several parameters
#first parameter contains descriptor of output file
#next parameters is command for execution
moddir=`printenv ${mod}_ROOT_DIR`
sed -e "s%^libdir='[^[:space:]]*${mod}[^[:space:]]*/\(lib.*\)'%libdir='${moddir}/\1'%g" $l > $l"_"
mv -f $l"_" $l
+
+ # 15. process libxml dependencies
+ libxmldir=`printenv LIBXML_DIR`/lib
+ if [ ! -d ${libxmldir} ] ; then libxmldir=`printenv LIBXML_DIR`/lib ; fi
+ sed -e "s%\(.*\)\([[:space:]].*/lib/libxml2.la[[:space:]]\)\(.*\)%\1 ${libxmldir}/libxml2.la \3%g" \
+ -e "s%-L[^[:space:]]*libxml2[^[:space:]]*/lib%-L${libxmldir}%g" $l > $l"_"
+ mv -f $l"_" $l
+
+ # 16. process metis dependencies
+ metisdir=`printenv METISDIR`
+ if [ ! -d ${metisdir} ] ; then metisdir=`printenv METISDIR` ; fi
+ sed -e "s%-L[^[:space:]]*metis[^[:space:]]*%-L${metisdir}%g" $l > $l"_"
+ mv -f $l"_" $l
+
+ # 3. process scotch dependencies
+ scotchdir=`printenv SCOTCHDIR`/bin
+ if [ ! -d ${scotchdir} ] ; then scotchdir=`printenv SCOTCHDIR`/bin ; fi
+ sed -e "s%-L[^[:space:]]*scotch[^[:space:]]*/bin%-L${scotchdir}%g" $l > $l"_"
+ mv -f $l"_" $l
+
+
fi
done