From: admin Date: Thu, 20 Oct 2005 12:01:46 +0000 (+0000) Subject: This commit was generated by cvs2git to create branch 'SALOME_3'. X-Git-Tag: V_3_1_0a2~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=064e1054881cef4980b5f11906e6295dd44f927e;p=tools%2Finstall.git This commit was generated by cvs2git to create branch 'SALOME_3'. Cherrypick from master 2005-10-20 12:01:45 UTC vsr 'Update for version 2.2.5': config_files/CALCULATOR_BIN.sh config_files/CALCULATOR_SRC.sh --- diff --git a/config_files/CALCULATOR_BIN.sh b/config_files/CALCULATOR_BIN.sh new file mode 100755 index 0000000..ec090cd --- /dev/null +++ b/config_files/CALCULATOR_BIN.sh @@ -0,0 +1,83 @@ +#!/bin/sh + +check_version(){ +if [ -n "${CALCULATOR_ROOT_DIR}" ]; then + check_lib_version VERSION ${CALCULATOR_ROOT_DIR}/bin/salome + if [ "$?" -eq "0" ]; then + ver=`cat ${CALCULATOR_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` + if [ "$ver" = "2.2.5" ]; then + return 0 + fi + fi +fi +return 1 +} + +print_env(){ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <