X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=config_files%2FYACS.sh;h=d8f8e9036de4eef2f09d99de86f41a13e7f5edaf;hb=a50ede5166d99dfb95e4fac91787ad8c5a2087fa;hp=a8cb5a6f66374798080c524695f6d31e579cecc9;hpb=9d9300b025ea205f25f39551a5f0440e219cf33b;p=tools%2Finstall.git diff --git a/config_files/YACS.sh b/config_files/YACS.sh index a8cb5a6..d8f8e90 100755 --- a/config_files/YACS.sh +++ b/config_files/YACS.sh @@ -1,29 +1,27 @@ #!/bin/bash -noprofile #################################################################################### -# File : YACS_BIN.sh +# File : YACS.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.1.1" - 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 + if [ "$ver" = "${SALOME_VERSION}" ]; then return 0 fi fi elif [ -n "${YACS_SRC_DIR}" ]; then - check_salome_src_version YACS_SRC_DIR $VERSION + check_salome_src_version YACS_SRC_DIR if [ $? -eq 0 ] ; then return 0 ; fi return 1 fi @@ -31,49 +29,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 <