From fba5bdaec99554405481292216b2594f29facee2 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 24 Mar 2004 15:23:14 +0000 Subject: [PATCH] Add Component and PyCalculator modules --- config_files/COMPONENT_BIN_1.4.1.sh | 71 ++++++++++++++++++++++++++ config_files/COMPONENT_SRC_1.4.1.sh | 71 ++++++++++++++++++++++++++ config_files/PYCALCULATOR_BIN_1.4.1.sh | 71 ++++++++++++++++++++++++++ config_files/PYCALCULATOR_SRC_1.4.1.sh | 71 ++++++++++++++++++++++++++ 4 files changed, 284 insertions(+) create mode 100755 config_files/COMPONENT_BIN_1.4.1.sh create mode 100755 config_files/COMPONENT_SRC_1.4.1.sh create mode 100755 config_files/PYCALCULATOR_BIN_1.4.1.sh create mode 100755 config_files/PYCALCULATOR_SRC_1.4.1.sh diff --git a/config_files/COMPONENT_BIN_1.4.1.sh b/config_files/COMPONENT_BIN_1.4.1.sh new file mode 100755 index 0000000..4e00571 --- /dev/null +++ b/config_files/COMPONENT_BIN_1.4.1.sh @@ -0,0 +1,71 @@ +#!/bin/sh + +check_version(){ +if [ -n "${COMPONENT_ROOT_DIR}" ]; then + check_lib_version VERSION ${COMPONENT_ROOT_DIR}/bin + if [ "$?" -eq "0" ]; then + ver=`cat ${COMPONENT_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` + if [ "$ver" = "1.4.1" ]; 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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <