-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : BOOST-1.31.0.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : BOOST-1.32.0.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : CALCULATOR_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : CALCULATOR_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : CAS-6.1.2a2.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : COMPONENT_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : COMPONENT_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : GEOM_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : GEOM_SRC.sh
-#!/bin/sh
-
-####################################################################################
-# File : GHS3DPLUGIN_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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-if [ -n "${GHS3DPLUGIN_ROOT_DIR}" ]; then
- check_lib_version VERSION ${GHS3DPLUGIN_ROOT_DIR}/bin/salome
- if [ "$?" -eq "0" ]; then
- ver=`cat ${GHS3DPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
- if [ "$ver" = "3.2.3" ]; 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
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export GHS3DPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
-if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
- if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
- export LD_LIBRARY_PATH=\${GHS3DPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
- export PYTHONPATH=\${GHS3DPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${GHS3DPLUGIN_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}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-check_version
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
-fi
-if [ $? -eq 0 ] ; then
- 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
- if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
- export LD_LIBRARY_PATH=\${GHS3DPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
- export PYTHONPATH=\${GHS3DPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${GHS3DPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
- fi
-fi
-##
-EOF
- make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
- return 0
-fi
-return 1;
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-return 1
-}
-
-install_binary()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/GHS3DPLUGINbinariesV3.2.3.tar.gz -C ${INSTALL_ROOT}
-
-# modify all *.la files
-export GHS3DPLUGIN_ROOT_DIR=${PRODUCT_DIR}
-modif_la_files ${PRODUCT_DIR}
-
-print_env
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-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_3.2.3"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : GHS3DPLUGIN_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : GUI_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : GUI_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : HELLO_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : HELLO_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : HXX2SALOME.sh
-#!/bin/sh
-
-####################################################################################
-# File : HXX2SALOMEDOC.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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-# No way to check version!
-return 0
-}
-
-print_env(){
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-#nothing to do
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-try_native(){
-return 0
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source(){
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEDOCsourcesV3.2.3.tar.gz -C ${INSTALL_ROOT}
-
-print_env
-}
-
-install_binary(){
-echo "Can't install binaries for ${PRODUCT}"
-return 1
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-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.3"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : KERNEL_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : KERNEL_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : LIGHT_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : LIGHT_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : MED_BIN.sh
-#!/bin/sh
-
-####################################################################################
-# File : MED_SRC.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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-if [ -n "${MED_SRC_DIR}" ]; then
- check_lib_version VERSION ${MED_SRC_DIR}/bin
- if [ "$?" -eq "0" ]; then
- ver=`cat ${MED_SRC_DIR}/bin/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
- if [ "$ver" = "3.2.3" ]; then
- return 0
- fi
- fi
-fi
-return 1
-}
-
-print_env(){
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export MED_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-check_version
-if [ $? -eq 0 ] ; then
- cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export MED_SRC_DIR=${MED_SRC_DIR}
-##
-EOF
- make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
- return 0
-fi
-return 1;
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/MEDsourcesV3.2.3.tar.gz -C ${INSTALL_ROOT}
-
-print_env
-}
-
-install_binary()
-{
-return 1
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INSTALL_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="MedSrc" ; fi
-export PRODUCT="MED_SRC_3.2.3"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
-
-####################################################################################
-# File : NETGENPLUGIN_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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-if [ -n "${NETGENPLUGIN_ROOT_DIR}" ]; then
- check_lib_version VERSION ${NETGENPLUGIN_ROOT_DIR}/bin/salome
- if [ "$?" -eq "0" ]; then
- ver=`cat ${NETGENPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
- if [ "$ver" = "3.2.3" ]; 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
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export NETGENPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
-if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
- if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
- export LD_LIBRARY_PATH=\${NETGENPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
- export PYTHONPATH=\${NETGENPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${NETGENPLUGIN_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}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-check_version
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
-fi
-if [ $? -eq 0 ] ; then
- 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
- if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
- export LD_LIBRARY_PATH=\${NETGENPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
- export PYTHONPATH=\${NETGENPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${NETGENPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
- fi
-fi
-##
-EOF
- make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
- return 0
-fi
-return 1;
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-return 1
-}
-
-install_binary()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/NETGENPLUGINbinariesV3.2.3.tar.gz -C ${INSTALL_ROOT}
-
-# modify all *.la files
-export NETGENPLUGIN_ROOT_DIR=${PRODUCT_DIR}
-modif_la_files ${PRODUCT_DIR}
-
-print_env
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-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_3.2.3"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : NETGENPLUGIN_SRC.sh
-#!/bin/sh
-
-####################################################################################
-# File : Numeric-22.0.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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-ver=`python -c 'import Numeric; print Numeric.__version__' 2>/dev/null`
-if [ "$ver" == "22.0" ]; then
- return 0
-fi
-return 1
-}
-
-print_env(){
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export PYTHONPATH=\${INSTALL_ROOT}/${PRODUCT}/lib/python\${PYTHON_VERSION}/site-packages/Numeric:\${PYTHONPATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-numpath=`python -c "import Numeric; print Numeric.__file__" 2>/dev/null`
-if [ -n "${numpath}" ] ; then
- numpath=`dirname ${numpath}`
- ver=`python -c 'import Numeric; print Numeric.__version__' 2>/dev/null | awk -F. '{v=0;for(i=1;i<=NF;i++)v=v*100+$i;print v}'`
- if [ $ver -ge 2200 ] ; then
- tmp="${numpath} ${numpath} \${PYTHONPATH} ${PYTHONPATH}";
- pythonpath=`sort_path ${tmp}`
- cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export PYTHONPATH=${pythonpath}
-##
-EOF
- make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
- if [ $ver -eq 2200 ] ; then
- return 0
- else
- return 2
- fi
- fi
-fi
-return 1
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-makedir ${PRODUCT_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/Numeric-22.0.tar.gz -C ${INSTALL_WORK}
-cd ${PRODUCT_WORK}
-
-check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR}
-
-#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
-cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
-print_env
-}
-
-install_binary()
-{
-check_jb tar xfz ${SOURCE_DIR}/Numeric-22.0.tar.gz -C ${INSTALL_ROOT}
-
-print_env
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INSTALL_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="numeric" ; fi
-export PRODUCT="Numeric-22.0"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
-
-####################################################################################
-# File : Numeric-23.7.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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-ver=`python -c 'import Numeric; print Numeric.__version__' 2>/dev/null`
-if [ "$ver" == "23.7" ]; then
- return 0
-fi
-return 1
-}
-
-print_env(){
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export PYTHONPATH=\${INSTALL_ROOT}/${PRODUCT}/lib/python\${PYTHON_VERSION}/site-packages/Numeric:\${PYTHONPATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-numpath=`python -c "import Numeric; print Numeric.__file__" 2>/dev/null`
-if [ -n "${numpath}" ] ; then
- numpath=`dirname ${numpath}`
- ver=`python -c 'import Numeric; print Numeric.__version__' 2>/dev/null | awk -F. '{v=0;for(i=1;i<=NF;i++)v=v*100+$i;print v}'`
- if [ $ver -ge 2307 ] ; then
- tmp="${numpath} ${numpath} \${PYTHONPATH} ${PYTHONPATH}";
- pythonpath=`sort_path ${tmp}`
- cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export PYTHONPATH=${pythonpath}
-##
-EOF
- make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
- if [ $ver -eq 2307 ] ; then
- return 0
- else
- return 2
- fi
- fi
-fi
-return 1
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-makedir ${PRODUCT_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/Numeric-23.7.tar.gz -C ${INSTALL_WORK}
-cd ${PRODUCT_WORK}
- if test `uname -m` = "x86_64" ; then
-export CFLAGS=-m64
-export CXXFLAGS=-m64
- fi
-# check existence of lapack, f77blas, cblas, atlas, g2c libraries
-check_lib_version liblapack.so $LD_LIBRARY_PATH:/usr/lib
-lapack_nf=$?
-check_lib_version libf77blas.so $LD_LIBRARY_PATH:/usr/lib
-f77blas_nf=$?
-check_lib_version libcblas.so $LD_LIBRARY_PATH:/usr/lib
-cblas_nf=$?
-check_lib_version libatlas.so $LD_LIBRARY_PATH:/usr/lib
-atlas_nf=$?
-check_lib_version libg2c.so $LD_LIBRARY_PATH:/usr/lib
-g2c_nf=$?
-let nfound=$lapack_nf+$f77blas_nf+$cblas_nf+$atlas_nf+$g2c_nf
-# modify build procedure according to the libraries found
-if [ $nfound -gt 0 ] ; then
- cp setup.py setup.py.orig
- if [ "$lapack_nf" -eq "1" ] ; then
- sed -e "s%\(^libraries_list = \[\)\('lapack', \)\(.*\)$%\1\3%g" setup.py > _setup.py
- mv _setup.py setup.py
- fi
- if [ "$f77blas_nf" -eq "1" ] ; then
- sed -e "s%\(^libraries_list = \[.*\)\('f77blas', \)\(.*\)$%\1\3%g" setup.py > _setup.py
- mv _setup.py setup.py
- fi
- if [ "$cblas_nf" -eq "1" ] ; then
- sed -e "s%\(^libraries_list = \[.*\)\('cblas', \)\(.*\)$%\1\3%g" setup.py > _setup.py
- mv _setup.py setup.py
- fi
- if [ "$atlas_nf" -eq "1" ] ; then
- sed -e "s%\(^libraries_list = \[.*\)\('atlas', \)\(.*\)$%\1\3%g" setup.py > _setup.py
- mv _setup.py setup.py
- fi
- if [ "$g2c_nf" -eq "1" ] ; then
- sed -e "s%\(^libraries_list = \[.*\)\('g2c'\)\(.*\)$%\1\3%g" setup.py > _setup.py
- mv _setup.py setup.py
- fi
- sed -e "s%^use_dotblas = 1%use_dotblas = 0%g" setup.py > _setup.py
- mv _setup.py setup.py
- sed -e "s%#\(os.path.join('Src', 'blas_lite.c'),\)%\1%g" setup.py > _setup.py
- mv _setup.py setup.py
- sed -e "s%#\(os.path.join('Src', 'f2c_lite.c'),\)%\1%g" setup.py > _setup.py
- mv _setup.py setup.py
- sed -e "s%#\(os.path.join('Src', 'zlapack_lite.c'),\)%\1%g" setup.py > _setup.py
- mv _setup.py setup.py
- sed -e "s%#\(os.path.join('Src', 'dlapack_lite.c')\)%\1%g" setup.py > _setup.py
- mv _setup.py setup.py
- chmod a+x setup.py
-fi
-
-check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR}
-
- if test `uname -m` = "x86_64" ; then
- cd ${PRODUCT_DIR}; ln -sf lib64 lib
- fi
-
-#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
-cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
-print_env
-}
-
-install_binary()
-{
-check_jb tar xfz ${SOURCE_DIR}/Numeric-23.7.tar.gz -C ${INSTALL_ROOT}
-
-print_env
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INSTALL_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="numeric" ; fi
-export PRODUCT="Numeric-23.7"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : PYCALCULATOR_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : PYCALCULATOR_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : PYHELLO_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : PYHELLO_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : PyQt-3.13.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : PyQt-3.14.1.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : Python-2.3.4.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : Python-2.3.5.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : Python-2.4.1.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : SAMPLES.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : SMESH_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : SMESH_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : SUPERV_BIN.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : SUPERV_SRC.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : SWIG-1.3.24.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : VISU_BIN.sh
-#!/bin/sh
-
-####################################################################################
-# File : VISU_SRC.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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-if [ -n "${VISU_SRC_DIR}" ]; then
- check_lib_version VERSION ${VISU_SRC_DIR}/bin
- if [ "$?" -eq "0" ]; then
- ver=`cat ${VISU_SRC_DIR}/bin/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
- if [ "$ver" = "3.2.3" ]; then
- return 0
- fi
- fi
-fi
-return 1
-}
-
-print_env(){
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export VISU_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-check_version
-if [ $? -eq 0 ] ; then
- cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export VISU_SRC_DIR=${VISU_SRC_DIR}
-##
-EOF
- make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
- return 0
-fi
-return 1;
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/VISUsourcesV3.2.3.tar.gz -C ${INSTALL_ROOT}
-
-print_env
-}
-
-install_binary()
-{
-return 1
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INSTALL_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="VisuSrc" ; fi
-export PRODUCT="VISU_SRC_3.2.3"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : VTK-4.2.2.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : VTK-4.2.6.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : checkSize.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : common.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : docutils-0.3.7.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : doxygen-1.4.6.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : gcc-3.2.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : gcc-3.3.5.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : gcc-3.4.sh
-#!/bin/sh
-
-####################################################################################
-# File : gcc-4.0.1.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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-# version number is calculated as: <major>*10000+<minor>*100+<release>
-# e.g. for gcc 3.2 it is equal to 30200, for gcc 3.4.1 - 30401, for gcc 4.0.1 - 40001
-gcc_ver=`gcc -dumpversion | awk -F[.-] '{v1=0;v2=0;v3=0;if(NF>0)v1=$1;if(NF>1)v2=$2;if(NF>2)v3=$3;print v1*10000+v2*100+v3}'`
-if [ $gcc_ver -eq 40001 ] ; then
- return 0
-fi
-return 1
-}
-
-print_env(){
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export GCC_ROOT=\${INSTALL_ROOT}/${PRODUCT}
-export CXX=\${GCC_ROOT}/bin/g++
-export CC=\${GCC_ROOT}/bin/gcc
-export PATH=\${GCC_ROOT}/bin:\${PATH}
-export LD_LIBRARY_PATH=\${GCC_ROOT}/lib:\${LD_LIBRARY_PATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-gcc_root="`where_gcc 4.0.1`"
-if [ -n "${gcc_root}" ] ; then
- gcc_root=`cd ${gcc_root}/..; pwd`
- # get version number: <major>, <minor> and <release>
- # <major> and <minor> numbers are checked strickly, but <release> number can be larger than required one
- # version number is calculated as: <major>*10000+<minor>*100+<release>
- # e.g. for gcc 3.2 it is equal to 30200, for gcc 3.4.1 - 30401, for gcc 4.0.1 - 40001
- maj_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>0) print $1; else print 0}'`
- min_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>1) print $2; else print 0}'`
- rel_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>2) print $3; else print 0}'`
- let gcc_ver=$maj_ver*10000+$min_ver*100+$rel_ver
- if [ $gcc_ver -ge 40001 ] ; then
- tmp="\${GCC_ROOT}/bin ${gcc_root}/bin \${PATH} ${PATH}";
- path=`sort_path ${tmp}`
- tmp="\${GCC_ROOT}/lib ${gcc_root}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
- ld_library_path=`sort_path ${tmp}`
- cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export GCC_ROOT=${gcc_root}
-export CXX=\${GCC_ROOT}/bin/g++
-export CC=\${GCC_ROOT}/bin/gcc
-export PATH=${path}
-export LD_LIBRARY_PATH=${ld_library_path}
-##
-EOF
- make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-####### THIS COULD BE USED FOR STRICT COMPARISON ##############################
-# if [ $maj_ver -eq 4 ] && [ $min_ver -eq 0 ] && [ $rel_ver -eq 1 ] ; then
-######################################################################################
- if [ $maj_ver -eq 4 ] && [ $min_ver -eq 0 ] && [ $rel_ver -ge 1 ] ; then
- return 0
- else
- return 2
- fi
- fi
-fi
-return 1
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-echo "The installation of gcc 4.0.1 from sources is not provided! Use native gcc."
-return 1
-}
-
-install_binary()
-{
-echo "The installation of gcc 4.0.1 from binaries is not provided! Use native gcc."
-return 1
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INSTALL_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="gcc" ; fi
-export PRODUCT="gcc-3.4.1"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : graphviz-1.9.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : graphviz-2.2.1.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : hdf5-1.6.3.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : hdf5-1.6.4.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : med-2.2.3.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : msg2qm.sh
-#!/bin/sh
-
-####################################################################################
-# File : netgen-4.5.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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version()
-{
-# check existance of netgen
-# unfortunarely we can't find anything about netgen version
-if [ -n "$NETGENROOT" ]; then
- return 0
-fi
-return 1
-}
-
-print_env()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export NETGENHOME=\${INSTALL_ROOT}/${PRODUCT}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-check_version
-if [ $? -eq 0 ] ; then
- cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export NETGENHOME=\${NETGENROOT}
-##
-EOF
- make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
- return 0
-fi
-return 1;
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-makedir ${PRODUCT_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/netgen-4.5.tar.gz -C ${INSTALL_WORK}
-
-# apply general patch for SALOME
-if [ -f patches/netgen-4.5-for-SALOME.patch ] ; then
- cp patches/netgen-4.5-for-SALOME.patch ${PRODUCT_WORK}
- ( cd ${PRODUCT_WORK}; patch -p1 < netgen-4.5-for-SALOME.patch )
-fi
-
-# apply patch for 64-bit platforms
-if test `uname -m` = "x86_64" ; then
- if [ -f patches/netgen-4.5-lib64.patch ] ; then
- cp patches/netgen-4.5-lib64.patch ${PRODUCT_WORK}
- ( cd ${PRODUCT_WORK}; patch -p1 < netgen-4.5-lib64.patch )
- fi
-fi
-
-# additional patching for SALOME
-(cd ${PRODUCT_WORK}; cp ngtcltk/ngnewdelete.* libsrc/interface)
-
-# apply patch: to make compilable on latest versions of gcc
-(cd ${PRODUCT_WORK}/libsrc/meshing; echo -e '16s/^$/class Mesh;\nwq' | ed - meshtype.hpp > /dev/null)
-
-# apply patch: to make compilable with CASCADE-6.1.1
-(cd ${PRODUCT_WORK}/libsrc; sed -e "s%\(.*\)-DHAVE_LIMITS\'%\1-DHAVE_LIMITS_H%g" makefile.inc > makefile.inc.new; mv makefile.inc.new makefile.inc)
-
-# set platform type variable
-if test `uname -m` = "x86_64" ; then
- export MACHINE=LINUX64
-else
- export MACHINE=LINUX
-fi
-
-# compile
-for directory in csg general geom2d gprim interface linalg occ meshing opti stlgeom ; do
- cd ${PRODUCT_WORK}/libsrc/${directory}
- check_job ${PRODUCT_DIR}/MAKE.LOG make
-done
-
-# install
-mkdir -p ${PRODUCT_DIR}/lib
-cp -f ${PRODUCT_WORK}/lib/${MACHINE}/* ${PRODUCT_DIR}/lib
-mkdir -p ${PRODUCT_DIR}/include
-cp -f ${PRODUCT_WORK}/libsrc/interface/nglib.h ${PRODUCT_DIR}/include
-for directory in csg general geom2d gprim linalg occ meshing opti stlgeom ; do
- cp -f ${PRODUCT_WORK}/libsrc/${directory}/*.hpp ${PRODUCT_DIR}/include
-done
-cp -f ${PRODUCT_WORK}/libsrc/include/mystdlib.h ${PRODUCT_WORK}/libsrc/include/mydefs.hpp ${PRODUCT_DIR}/include
-
-#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
-cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
-print_env
-}
-
-install_binary()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/netgen-4.5.tar.gz -C ${INSTALL_ROOT}
-
-print_env
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INSTALL_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="netgen" ; fi
-export PRODUCT="netgen-4.5"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : omniORB-4.0.5.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : omniORB-4.0.6.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : omniORB-4.0.7.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : qt-3.3.3.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : qt-3.3.4.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : qwt-0.4.1.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : qwt-4.2.0.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : release_notes.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : remove_tmp.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : sip-4.1.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : sip-4.2.1.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : start_salome.sh
-#!/bin/sh
-
-####################################################################################
-# File : tcltk-8.3.3.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-2006 CEA
-#
-# This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-VERSION="8.3"
-
-check_version()
-{
-if [ -z "$TCLHOME" ]; then
- echo "TCLHOME doesn't set"
- return 1
-fi
-
-# check tcl version
-tcl_cfg=${TCLHOME}/lib/tclConfig.sh
-if [ ! -f ${tcl_cfg} ]; then tcl_cfg=${TCLHOME}/tcl${VERSION}/lib/tclConfig.sh; fi
-if [ ! -f ${tcl_cfg} ]; then tcl_cfg=${TCLHOME}/lib/tcl${VERSION}/tclConfig.sh; fi
-if [ ! -f ${tcl_cfg} ]; then tcl_cfg=${TCLHOME}/lib/tcl${VERSION}/lib/tclConfig.sh; fi
-if [ -f ${tcl_cfg} ]; then
- tcl_ver=`awk '/^TCL_VERSION=.*/ {gsub("TCL_VERSION=","",$1);print $1}' ${tcl_cfg} | cut -d "'" -f 2`
- if [ "$tcl_ver" != ${VERSION} ] ; then
- return 1
- fi
-else
- return 1
-fi
-
-# check tk version
-tk_cfg=${TCLHOME}/lib/tkConfig.sh
-if [ ! -f ${tk_cfg} ]; then tk_cfg=${TCLHOME}/tk${VERSION}/tkConfig.sh; fi
-if [ ! -f ${tk_cfg} ]; then tk_cfg=${TCLHOME}/lib/tk${VERSION}/tkConfig.sh; fi
-if [ ! -f ${tk_cfg} ]; then tk_cfg=${TCLHOME}/lib/tk${VERSION}/lib/tkConfig.sh; fi
-if [ -f ${tk_cfg} ]; then
- tk_ver=`awk '/^TK_VERSION=.*/ {gsub("TK_VERSION=","",$1);print $1}' ${tk_cfg} | cut -d "'" -f 2`
- if [ "$tk_ver" != ${VERSION} ] ; then
- return 1
- fi
-else
- return 1
-fi
-
-return 0
-}
-
-print_env()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export TCLHOME=\${INSTALL_ROOT}/${PRODUCT}
-export PATH=\${TCLHOME}/bin:\${PATH}
-export LD_LIBRARY_PATH=\${TCLHOME}/lib:\${LD_LIBRARY_PATH}
-export TCLLIBPATH="\${TCLHOME}/lib \${TCLHOME}/lib/tcl${VERSION} \${TCLHOME}/lib/tk${VERSION} \${TCLLIBPATH}"
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-tclhome="`find_in_path tclsh ${PATH}`"
-if [ -z "${tclhome}" ] ; then
- tclhome="`find_in_path tclsh /usr/bin`"
-fi
-if [ -n "${tclhome}" ] ; then
- tclhome=`cd ${tclhome}/..; pwd`
- tmp="\${TCLHOME}/bin ${tclhome}/bin \${PATH} ${PATH}";
- path=`sort_path ${tmp}`
- tmp="\${TCLHOME}/lib ${tclhome}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
- ld_library_path=`sort_path ${tmp}`
- cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export TCLHOME=${tclhome}
-export PATH=${path}
-export LD_LIBRARY_PATH=${ld_library_path}
-export TCLLIBPATH="\${TCLHOME}/lib \${TCLHOME}/lib/tcl${VERSION} \${TCLHOME}/lib/tk${VERSION} \${TCLLIBPATH}"
-##
-EOF
- (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
- make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
- return 0
-fi
-return 1;
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-makedir ${PRODUCT_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/tcl8.3.3.tar.gz -C ${INSTALL_WORK}
-cd ${INSTALL_WORK}/tcl8.3.3/unix
-cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF
--------------------
-Configuring tcl...
--------------------
-EOF
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --enable-gcc --enable-shared --enable-threads \
- --prefix=${PRODUCT_DIR}
-GCC=`which gcc`
-cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
-used gcc=$GCC
--------------------
-Making tcl...
--------------------
-EOF
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-cat >> ${PRODUCT_DIR}/MAKEINSTALL.LOG <<EOF
--------------------
-Installing tcl...
--------------------
-EOF
-check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
-
-(cd ${PRODUCT_DIR}/bin; ln -s tclsh8.3 tclsh)
-(cd ${PRODUCT_DIR}/lib; ln -s libtcl8.3.so libtcl.so)
-(cd ${PRODUCT_DIR}/lib; ln -s libtclstub8.3.a libtclstub.a)
-
-check_jb tar xfz ${SOURCE_DIR}/tk8.3.3.tar.gz -C ${INSTALL_WORK}
-cd ${INSTALL_WORK}/tk8.3.3/unix
-cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF
--------------------
-Configuring tk...
--------------------
-EOF
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --enable-gcc --enable-shared --enable-threads \
- --prefix=${PRODUCT_DIR}
-cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
--------------------
-Making tk...
--------------------
-EOF
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-cat >> ${PRODUCT_DIR}/MAKEINSTALL.LOG <<EOF
--------------------
-Installing tk...
--------------------
-EOF
-check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
-
-(cd ${PRODUCT_DIR}/bin; ln -s wish8.3 wish)
-(cd ${PRODUCT_DIR}/lib; ln -s libtk8.3.so libtk.so)
-(cd ${PRODUCT_DIR}/lib; ln -s libtkstub8.3.a libtkstub.a)
-
-check_jb tar xfz ${SOURCE_DIR}/tclx8.3.tar.gz -C ${INSTALL_WORK}
-cd ${INSTALL_WORK}/tclx8.3/unix
-#VRV - bug in a tclx configure
-chmod +w ./configure
-echo -e '/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 1\ns/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 1/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 0\nwq' | ed - configure
-chmod -w ./configure
-#VRV - bug in a tclx configure
-cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF
--------------------
-Configuring tclx...
--------------------
-EOF
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
- ./configure --enable-gcc --enable-shared --enable-threads \
- --prefix=${PRODUCT_DIR}
-cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
--------------------
-Making tclx...
--------------------
-EOF
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-cat >> ${PRODUCT_DIR}/MAKEINSTALLEXEC.LOG <<EOF
--------------------
-Installing tclx...
--------------------
-EOF
-check_job ${PRODUCT_DIR}/MAKEINSTALLEXEC.LOG make install-exec
-
-(cd ${PRODUCT_DIR}/lib; ln -s libtclx8.3.so libtclx.so)
-(cd ${PRODUCT_DIR}/lib; ln -s libtclx8.3.a libtclx.a)
-(cd ${PRODUCT_DIR}/lib; ln -s libtkx8.3.so libtkx.so)
-(cd ${PRODUCT_DIR}/lib; ln -s libtkx8.3.a libtkx.a)
-
-#du -sk ${INSTALL_WORK}/tcl8.3.3 > ${PRODUCT_DIR}/size.log
-#du -sk ${INSTALL_WORK}/tk8.3.3 >> ${PRODUCT_DIR}/size.log
-#du -sk ${INSTALL_WORK}/tclx8.3 >> ${PRODUCT_DIR}/size.log
-cd ${PRODUCT_DIR}
-rm -fr ${INSTALL_WORK}/tcl8.3.3 ${INSTALL_WORK}/tk8.3.3 ${INSTALL_WORK}/tclx8.3
-print_env
-}
-
-install_binary()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/tcltk-8.3.3.tar.gz -C ${INSTALL_ROOT}
-
-# overriding installation path
-cd ${PRODUCT_DIR}/lib
-old_prefix=`grep -e "^TCL_PREFIX='.*'" tclConfig.sh | sed -e "s%^TCL_PREFIX='\(.*\)'%\1%g"`
-sed -e "s%${old_prefix}%${PRODUCT_DIR}%g" tclConfig.sh > _tclConfig.sh
-mv -f _tclConfig.sh tclConfig.sh
-sed -e "s%${old_prefix}%${PRODUCT_DIR}%g" tkConfig.sh > _tkConfig.sh
-mv -f _tkConfig.sh tkConfig.sh
-
-print_env
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INSTALL_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="tcl" ; fi
-export PRODUCT="tcltk-8.3.3"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : tcltk-8.4.5.sh
-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : tcltk-8.4.7.sh