X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=config_files%2FPYCALCULATOR.sh;h=d1e8796bf4f3eafedbd26d34b18d509ef0c1357b;hb=3222fa0a5ebba6ae7672fc2aeec11c4f19b3b9cc;hp=6bf40ff82fc61df63ca83ad68649d4a932f4d560;hpb=5d4b10933b2fcbdcce7d19f299d87e55cc45640a;p=tools%2Finstall.git diff --git a/config_files/PYCALCULATOR.sh b/config_files/PYCALCULATOR.sh index 6bf40ff..d1e8796 100755 --- a/config_files/PYCALCULATOR.sh +++ b/config_files/PYCALCULATOR.sh @@ -1,88 +1,77 @@ #!/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="3.2.6" - 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 - 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 + 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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <