From 6213862b91210dc373a130efb1bd5ad156e4b21e Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 8 May 2008 10:02:51 +0000 Subject: [PATCH] 1. Prepeare for version 3.2.10 2. Add 'install to single dir' option --- config_files/CALCULATOR_BIN.sh | 34 ++++++++++++++++++++++++------- config_files/CALCULATOR_SRC.sh | 2 +- config_files/COMPONENT_BIN.sh | 34 ++++++++++++++++++++++++------- config_files/COMPONENT_SRC.sh | 2 +- config_files/DOCUMENTATION.sh | 2 +- config_files/GEOM_BIN.sh | 32 ++++++++++++++++++++++++----- config_files/GEOM_SRC.sh | 2 +- config_files/GHS3DPLUGIN_BIN.sh | 35 ++++++++++++++++++++++++-------- config_files/GHS3DPLUGIN_SRC.sh | 2 +- config_files/GUI_BIN.sh | 32 ++++++++++++++++++++++++----- config_files/GUI_SRC.sh | 2 +- config_files/HELLO_BIN.sh | 35 ++++++++++++++++++++++++++------ config_files/HELLO_SRC.sh | 2 +- config_files/HXX2SALOME.sh | 6 +++--- config_files/HXX2SALOMEDOC.sh | 4 ++-- config_files/KERNEL_BIN.sh | 32 ++++++++++++++++++++++++----- config_files/KERNEL_SRC.sh | 2 +- config_files/LIGHT_BIN.sh | 35 ++++++++++++++++++++++++++------ config_files/LIGHT_SRC.sh | 2 +- config_files/MEDWOGUI_BIN.sh | 32 ++++++++++++++++++++++++----- config_files/MEDWOGUI_SRC.sh | 2 +- config_files/MED_BIN.sh | 32 ++++++++++++++++++++++++----- config_files/MED_SRC.sh | 2 +- config_files/NETGENPLUGIN_BIN.sh | 33 ++++++++++++++++++++++++------ config_files/NETGENPLUGIN_SRC.sh | 2 +- config_files/PYCALCULATOR_BIN.sh | 32 ++++++++++++++++++++++++----- config_files/PYCALCULATOR_SRC.sh | 2 +- config_files/PYHELLO_BIN.sh | 35 ++++++++++++++++++++++++++------ config_files/PYHELLO_SRC.sh | 2 +- config_files/RANDOMIZER_BIN.sh | 35 ++++++++++++++++++++++++++------ config_files/RANDOMIZER_SRC.sh | 2 +- config_files/SAMPLES.sh | 2 +- config_files/SIERPINSKY_BIN.sh | 35 ++++++++++++++++++++++++++------ config_files/SIERPINSKY_SRC.sh | 2 +- config_files/SMESH_BIN.sh | 32 ++++++++++++++++++++++++----- config_files/SMESH_SRC.sh | 2 +- config_files/SUPERV_BIN.sh | 32 ++++++++++++++++++++++++----- config_files/SUPERV_SRC.sh | 2 +- config_files/VISU_BIN.sh | 32 ++++++++++++++++++++++++----- config_files/VISU_SRC.sh | 2 +- config_files/common.sh | 19 ++++++++++++++--- 41 files changed, 537 insertions(+), 131 deletions(-) diff --git a/config_files/CALCULATOR_BIN.sh b/config_files/CALCULATOR_BIN.sh index 3cc2764..739b22f 100755 --- a/config_files/CALCULATOR_BIN.sh +++ b/config_files/CALCULATOR_BIN.sh @@ -12,7 +12,7 @@ # #################################################################################### -VERSION="3.2.9" +VERSION="3.2.10" check_version(){ if [ -n "${CALCULATOR_ROOT_DIR}" ]; then @@ -28,14 +28,25 @@ return 1 } print_env(){ - if test `uname -m` = "x86_64" ; then export LIB_PREFIX=64 else export LIB_PREFIX="" fi - -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 < ${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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/CONFIGURE.LOG < ${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 < ${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 < ${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 < ${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 < ${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}/$SHRC 2>/dev/null ) + if [ -e $env_file ] ; then + grep "$SDIR_DELIM" $env_file >& /dev/null + if [ $? -eq 0 ] ; then + if [ "$SINGLE_ROOT_DIR" == "1" ] ; then + cat $env_file | grep -v "$SDIR_DELIM" >> ${install_work}/$SHRC 2>/dev/null + else + cat $env_file | sed -e "s/$SDIR_DELIM//g" >> ${install_work}/$SHRC 2>/dev/null + fi + SINGLE_ROOT_DIR=1 + else + cat $env_file >> ${install_work}/$SHRC 2>/dev/null + fi + fi done # 2. writing global functions to _salome.sh file @@ -339,7 +352,7 @@ cat ${INSTALL_WORK}/_tmp2 >> ${install_work}/_$CSHRC 2>/dev/null rm -f ${INSTALL_WORK}/_tmp1 ${INSTALL_WORK}/_tmp2 -if [ $# -eq 4 ] ; then +if [ $# -gt 3 ] ; then product_dir=$4 if [ -e ${product_dir} ] ; then cp -f ${install_work}/_$SHRC ${product_dir}/$SHRC @@ -370,7 +383,7 @@ for p in `ls ../` ; do fi fi done - +unset SINGLE_ROOT_DIR } #try use already existing product -- 2.39.2