X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=config_files%2FPYHELLO_SRC.sh;h=b4380e229945b3e58edbee8b4ff4c7d87757273e;hb=53e3ff5fd2fe76b48edb73b2adae61b33697ede9;hp=764f7554382be6702d8b4ae83bff0f62689a316d;hpb=f4cb7c8e660ac4f6f0378ba735480382ba30ca7d;p=tools%2Finstall.git diff --git a/config_files/PYHELLO_SRC.sh b/config_files/PYHELLO_SRC.sh index 764f755..b4380e2 100755 --- a/config_files/PYHELLO_SRC.sh +++ b/config_files/PYHELLO_SRC.sh @@ -1,10 +1,24 @@ -#!/bin/sh +#!/bin/bash -noprofile + +#################################################################################### +# File : PYHELLO_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-2006 CEA +# +# This script is the part of the SALOME installation procedure. +# +#################################################################################### + +VERSION="3.2.4" check_version(){ if [ -n "${PYHELLO_SRC_DIR}" ]; then - if [ -f ${PYHELLO_SRC_DIR}/bin/VERSION ]; then - ver=`cat ${PYHELLO_SRC_DIR}/bin/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` - if [ "$ver" = "3.1.0b1" ]; then + if [ -f ${PYHELLO_SRC_DIR}/configure.in.base ]; then + ver=`grep -E "^VERSION=" ${PYHELLO_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` + if [ "$ver" = "${VERSION}" ]; then return 0 fi fi @@ -18,6 +32,7 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <