From 064e1054881cef4980b5f11906e6295dd44f927e Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 20 Oct 2005 12:01:46 +0000 Subject: [PATCH] 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 --- config_files/CALCULATOR_BIN.sh | 83 ++++++++++++++++++++++++++++++++++ config_files/CALCULATOR_SRC.sh | 71 +++++++++++++++++++++++++++++ 2 files changed, 154 insertions(+) create mode 100755 config_files/CALCULATOR_BIN.sh create mode 100755 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 <