From c914cb58ed1a701f3fecc08f4cd821f22c5f4c00 Mon Sep 17 00:00:00 2001 From: inv Date: Fri, 13 May 2011 07:42:53 +0000 Subject: [PATCH] Adding new modules --- config_files/HOMARD.sh | 153 +++++++++++++++++++++++++++++++++++++++++ config_files/build.csh | 2 +- config_files/build.sh | 2 +- 3 files changed, 155 insertions(+), 2 deletions(-) create mode 100755 config_files/HOMARD.sh diff --git a/config_files/HOMARD.sh b/config_files/HOMARD.sh new file mode 100755 index 0000000..1719b65 --- /dev/null +++ b/config_files/HOMARD.sh @@ -0,0 +1,153 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : HOMARD.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 "${HOMARD_ROOT_DIR}" ]; then + check_lib_version VERSION ${HOMARD_ROOT_DIR}/bin/salome + if [ "$?" -eq "0" ]; then + ver=`cat ${HOMARD_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` + if [ "$ver" = "${SALOME_VERSION}" ]; then + return 0 + fi + fi +elif [ -n "${HOMARD_SRC_DIR}" ]; then + check_salome_src_version HOMARD_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 <