X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=config_files%2FSUPERV_SRC.sh;h=56f9b2e05c7c38799fc480f6435d46ff9a6ac361;hb=6c5b42a257f283038df6d3667f1176cb9bf7e33a;hp=9478389339bb1dc1f49395a9fc0bc68ac9dce94e;hpb=f6fe2083605f330048cea7dd1046b716ab4db7c6;p=tools%2Finstall.git diff --git a/config_files/SUPERV_SRC.sh b/config_files/SUPERV_SRC.sh index 9478389..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.0a2" ]; 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 <