X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=config_files%2FSUPERV_SRC.sh;h=56f9b2e05c7c38799fc480f6435d46ff9a6ac361;hb=6c5b42a257f283038df6d3667f1176cb9bf7e33a;hp=92c9c714c0cf95ba77e2421d82ef8d56e8e502e9;hpb=899c6760155869f29cf14695acc03c8c00bb27ef;p=tools%2Finstall.git diff --git a/config_files/SUPERV_SRC.sh b/config_files/SUPERV_SRC.sh index 92c9c71..56f9b2e 100755 --- a/config_files/SUPERV_SRC.sh +++ b/config_files/SUPERV_SRC.sh @@ -1,11 +1,24 @@ -#!/bin/sh +#!/bin/bash -noprofile + +#################################################################################### +# File : SUPERV_SRC.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.6" check_version(){ if [ -n "${SUPERV_SRC_DIR}" ]; then - check_lib_version VERSION ${SUPERV_SRC_DIR}/bin - if [ "$?" -eq "0" ]; then - ver=`cat ${SUPERV_SRC_DIR}/bin/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` - if [ "$ver" = "3.2.1" ]; then + if [ -f ${SUPERV_SRC_DIR}/configure.in.base ]; then + ver=`grep -E "^VERSION=" ${SUPERV_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` + if [ "$ver" = "${VERSION}" ]; then return 0 fi fi @@ -19,6 +32,7 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <