X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=config_files%2FPYCALCULATOR.sh;h=a965c335e6c23a91c7fc154503afde6ed3dc6d14;hb=afaa25c7343b87a1582b71744f5481bd26a8278d;hp=aff00166ace99eb94398bb27cb5a6c3b9caa9210;hpb=b2036a2d0e2c0ea62a25791c479629b0a6e20c37;p=tools%2Finstall.git diff --git a/config_files/PYCALCULATOR.sh b/config_files/PYCALCULATOR.sh index aff0016..a965c33 100755 --- a/config_files/PYCALCULATOR.sh +++ b/config_files/PYCALCULATOR.sh @@ -1,30 +1,28 @@ #!/bin/bash -noprofile #################################################################################### -# File : PYCALCULATOR_BIN.sh +# File : PYCALCULATOR.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="5.0.0" - check_version(){ if [ -n "${PYCALCULATOR_ROOT_DIR}" ]; then check_lib_version VERSION ${PYCALCULATOR_ROOT_DIR}/bin/salome if [ "$?" -eq "0" ]; then ver=`cat ${PYCALCULATOR_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 "${PYCALCULATOR_SRC_DIR}" ]; then - check_salome_src_version PYCALCULATOR_SRC_DIR $VERSION + check_salome_src_version PYCALCULATOR_SRC_DIR if [ $? -eq 0 ] ; then return 0 ; fi return 1 fi @@ -32,20 +30,14 @@ return 1 } print_env_bin(){ -if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then - LIB_PREFIX=64 -elif [ -d ${PRODUCT_DIR}/lib ] ; then - LIB_PREFIX="" -else - LIB_PREFIX=64 -fi cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <