X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=config_files%2FGUI.sh;h=6d6ca7fbd0890bc4a585cd0bd951452a85ea28fd;hb=db3cb70c9ea1bbceadce9f0ead749d1fee9941eb;hp=241f2133e5e423fea748b70e214697b2b81d91b4;hpb=d3a1a7575c52dcd103bbc38b5ff7b034267d1459;p=tools%2Finstall.git diff --git a/config_files/GUI.sh b/config_files/GUI.sh index 241f213..6d6ca7f 100755 --- a/config_files/GUI.sh +++ b/config_files/GUI.sh @@ -1,84 +1,74 @@ #!/bin/bash -noprofile #################################################################################### -# File : GUI_BIN.sh +# File : GUI.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 "${GUI_ROOT_DIR}" ]; then check_lib_version VERSION ${GUI_ROOT_DIR}/bin/salome if [ "$?" -eq "0" ]; then ver=`cat ${GUI_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 "${GUI_SRC_DIR}" ]; then - if [ -f ${GUI_SRC_DIR}/configure.in.base ]; then - ver=`grep -E "^VERSION=" ${GUI_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` - if [ "$ver" = "${VERSION}" ]; then - return 0 - fi - fi + check_salome_src_version GUI_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 <