X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=config_files%2FPYHELLO_SRC.sh;h=b4380e229945b3e58edbee8b4ff4c7d87757273e;hb=53e3ff5fd2fe76b48edb73b2adae61b33697ede9;hp=b8d4bd8ef2be41006c0a8c576893ee0bd5844d95;hpb=dfad0e791df5e735eb93dad742e15505871f6080;p=tools%2Finstall.git diff --git a/config_files/PYHELLO_SRC.sh b/config_files/PYHELLO_SRC.sh index b8d4bd8..b4380e2 100755 --- a/config_files/PYHELLO_SRC.sh +++ b/config_files/PYHELLO_SRC.sh @@ -12,11 +12,13 @@ # #################################################################################### +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.2.4" ]; 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 @@ -30,6 +32,7 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <