X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=config_files%2FMED_BIN.sh;h=0bf2fa3c8d981b2ba606d9a6f902cbbd40542cb2;hb=a75fbb57b8f98e6e4f67d65ae86bd528d864e761;hp=a2f914abfc89f5e883beaa5aabd5c10220c5e438;hpb=15d500ad3ebc31eec8b286677cf4cee0e9899307;p=tools%2Finstall.git diff --git a/config_files/MED_BIN.sh b/config_files/MED_BIN.sh index a2f914a..0bf2fa3 100755 --- a/config_files/MED_BIN.sh +++ b/config_files/MED_BIN.sh @@ -1,11 +1,25 @@ -#!/bin/sh +#!/bin/bash -noprofile + +#################################################################################### +# File : MED_BIN.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 +# +# This script is the part of the SALOME installation procedure. +# +#################################################################################### + +VERSION="3.2.5" check_version(){ if [ -n "${MED_ROOT_DIR}" ]; then check_lib_version VERSION ${MED_ROOT_DIR}/bin/salome if [ "$?" -eq "0" ]; then ver=`cat ${MED_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` - if [ "$ver" = "2.2.4" ]; then + if [ "$ver" = "${VERSION}" ]; then return 0 fi fi @@ -14,14 +28,19 @@ return 1 } print_env(){ +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}.sh <