From e997743b4e287d6dbf960d94d18badb824c3c803 Mon Sep 17 00:00:00 2001 From: inv Date: Tue, 17 May 2011 10:00:33 +0000 Subject: [PATCH] Adding HEXABLOCK and HEXABLOCKPLUGIN module --- config_files/HEXABLOCK.sh | 152 +++++++++++++++++++++++++++++++ config_files/HEXABLOCKPLUGIN.sh | 153 ++++++++++++++++++++++++++++++++ 2 files changed, 305 insertions(+) create mode 100755 config_files/HEXABLOCK.sh create mode 100755 config_files/HEXABLOCKPLUGIN.sh diff --git a/config_files/HEXABLOCK.sh b/config_files/HEXABLOCK.sh new file mode 100755 index 0000000..4769a82 --- /dev/null +++ b/config_files/HEXABLOCK.sh @@ -0,0 +1,152 @@ +#!/bin/bash -noprofile +#################################################################################### +# File : HEXABLOCK.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-2008 CEA +# +# This script is the part of the SALOME installation procedure. +# +#################################################################################### + +check_version(){ +if [ -n "${HEXABLOCK_ROOT_DIR}" ]; then + check_lib_version VERSION ${HEXABLOCK_ROOT_DIR}/bin/salome + if [ "$?" -eq "0" ]; then + ver=`cat ${HEXABLOCK_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` + if [ "$ver" = "${SALOME_VERSION}" ]; then + return 0 + fi + fi +elif [ -n "${HEXABLOCK_SRC_DIR}" ]; then + check_salome_src_version HEXABLOCK_SRC_DIR + if [ $? -eq 0 ] ; then return 0 ; fi + return 1 +fi +return 1 +} + +print_env_bin(){ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <