X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=config_files%2FSMESH.sh;h=606759928cd7e3444009816ebd7343f0ba113332;hb=55e927e2f94e4c823f0eda14e2056991637417fa;hp=e34b7fc734f038f7c2f19eb62186ae72e77f365f;hpb=af32de5ebb7308cf5c519c8d17d93c96d9a8b409;p=tools%2Finstall.git diff --git a/config_files/SMESH.sh b/config_files/SMESH.sh index e34b7fc..6067599 100755 --- a/config_files/SMESH.sh +++ b/config_files/SMESH.sh @@ -1,30 +1,28 @@ #!/bin/bash -noprofile #################################################################################### -# File : SMESH_BIN.sh +# File : SMESH.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 +# Copyright : 2002-2008 CEA # # This script is the part of the SALOME installation procedure. # #################################################################################### -VERSION="4.0.0" - check_version(){ if [ -n "${SMESH_ROOT_DIR}" ]; then check_lib_version VERSION ${SMESH_ROOT_DIR}/bin/salome if [ "$?" -eq "0" ]; then ver=`cat ${SMESH_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` - if [ "$ver" = "${VERSION}" ]; then + if [ "$ver" = "${SALOME_VERSION}" ]; then return 0 fi fi elif [ -n "${SMESH_SRC_DIR}" ]; then - check_salome_src_version SMESH_SRC_DIR $VERSION + check_salome_src_version SMESH_SRC_DIR if [ $? -eq 0 ] ; then return 0 ; fi return 1 fi @@ -32,50 +30,45 @@ 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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <