]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
1. Prepeare for version 3.2.10
authorvsr <vsr@opencascade.com>
Thu, 8 May 2008 10:02:51 +0000 (10:02 +0000)
committervsr <vsr@opencascade.com>
Thu, 8 May 2008 10:02:51 +0000 (10:02 +0000)
2. Add 'install to single dir' option

41 files changed:
config_files/CALCULATOR_BIN.sh
config_files/CALCULATOR_SRC.sh
config_files/COMPONENT_BIN.sh
config_files/COMPONENT_SRC.sh
config_files/DOCUMENTATION.sh
config_files/GEOM_BIN.sh
config_files/GEOM_SRC.sh
config_files/GHS3DPLUGIN_BIN.sh
config_files/GHS3DPLUGIN_SRC.sh
config_files/GUI_BIN.sh
config_files/GUI_SRC.sh
config_files/HELLO_BIN.sh
config_files/HELLO_SRC.sh
config_files/HXX2SALOME.sh
config_files/HXX2SALOMEDOC.sh
config_files/KERNEL_BIN.sh
config_files/KERNEL_SRC.sh
config_files/LIGHT_BIN.sh
config_files/LIGHT_SRC.sh
config_files/MEDWOGUI_BIN.sh
config_files/MEDWOGUI_SRC.sh
config_files/MED_BIN.sh
config_files/MED_SRC.sh
config_files/NETGENPLUGIN_BIN.sh
config_files/NETGENPLUGIN_SRC.sh
config_files/PYCALCULATOR_BIN.sh
config_files/PYCALCULATOR_SRC.sh
config_files/PYHELLO_BIN.sh
config_files/PYHELLO_SRC.sh
config_files/RANDOMIZER_BIN.sh
config_files/RANDOMIZER_SRC.sh
config_files/SAMPLES.sh
config_files/SIERPINSKY_BIN.sh
config_files/SIERPINSKY_SRC.sh
config_files/SMESH_BIN.sh
config_files/SMESH_SRC.sh
config_files/SUPERV_BIN.sh
config_files/SUPERV_SRC.sh
config_files/VISU_BIN.sh
config_files/VISU_SRC.sh
config_files/common.sh

index 3cc2764f9f182dc884e715e2f37bf79b09624e9f..739b22fc9ebdbb5d54023593e3dc9920d9362e00 100755 (executable)
@@ -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 <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export CALCULATOR_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export CALCULATOR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -47,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -93,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/CALCULATORbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/CALCULATORbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export CALCULATOR_ROOT_DIR=${PRODUCT_DIR}
@@ -113,8 +128,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="CALCULATORbin" ; fi
-export PRODUCT="CALCULATOR_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=CALCULATOR_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 73e4ebcb448381b4fa1b0dfd211339dd804a2e88..25abd886a1aabdf2d6539374e2d489b4596d54f3 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${CALCULATOR_SRC_DIR}" ]; then
index 2338892bb0ff5052ae70d7cf77f80d3613a6935f..1e813913b7dc4dcdf37dcaeaebe524b6a6d445d1 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${COMPONENT_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 <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export COMPONENT_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export COMPONENT_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -47,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -93,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/COMPONENTbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/COMPONENTbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export COMPONENT_ROOT_DIR=${PRODUCT_DIR}
@@ -107,8 +122,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="COMPONENTbin" ; fi
-export PRODUCT="COMPONENT_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=COMPONENT_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 65f24f5744a1c903ad1c636f8ca81161378c310c..74e12ee9f105941ee9f8c491b3504371e0d7875b 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${COMPONENT_SRC_DIR}" ]; then
index b5f5cf3541fcbe36a0ead88f36e73e129f37efc2..bca6ee38c2acbcdccf33d33fecdfffc43408570b 100755 (executable)
@@ -42,7 +42,7 @@ install_source()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/DOCUMENTATION-V3.2.9.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/DOCUMENTATION-V3.2.10.tar.gz -C ${INSTALL_ROOT}
 
 print_env
 }
index 4385998cf760dc6783edfcba2200636e6ee47610..91b0fd89f8009d3030f443187133e21d4d574b03 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${GEOM_ROOT_DIR}" ]; then
@@ -33,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export GEOM_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export GEOM_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -45,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -91,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/GEOMbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/GEOMbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export GEOM_ROOT_DIR=${PRODUCT_DIR}
@@ -105,8 +122,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GEOMbin" ; fi
-export PRODUCT="GEOM_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=GEOM_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 003e030428f22a5a648efb27dc0a40a195969799..9df1444aedceedba5c614352baba11b7405f3d67 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${GEOM_SRC_DIR}" ]; then
index c21e6c6c90fa8f24e45f6b01bf70bd04dd1b7896..4b119faed45edaf7a0399f684c82e5bab312318b 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${GHS3DPLUGIN_ROOT_DIR}" ]; then
@@ -23,20 +23,30 @@ if [ -n "${GHS3DPLUGIN_ROOT_DIR}" ]; then
            return 0
        fi
     fi
-  return 0
 fi
 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 <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export GHS3DPLUGIN_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export GHS3DPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -47,6 +57,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -92,7 +103,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/GHS3DPLUGINbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/GHS3DPLUGINbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export GHS3DPLUGIN_ROOT_DIR=${PRODUCT_DIR}
@@ -106,8 +120,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GHS3DPLUGINbin" ; fi
-export PRODUCT="GHS3DPLUGIN_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=GHS3DPLUGIN_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index ac8374c7f51849ad95984bf15ee05c92a23385a8..ff4b1ff6c5fc343501b7306fc8c447e25cba6716 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${GHS3DPLUGIN_SRC_DIR}" ]; then
index bf7558a8a915cf92f142a53d2bd08a589a9ce000..0c4fdda6d1c92261ec50d32a2162c631a7ff364e 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${GUI_ROOT_DIR}" ]; then
@@ -33,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export GUI_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export GUI_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -45,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -91,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/GUIbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/GUIbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export GUI_ROOT_DIR=${PRODUCT_DIR}
@@ -105,8 +122,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GUIbin" ; fi
-export PRODUCT="GUI_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=GUI_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 38b6bb0ba791642baba43cf70b13e37af4b4913f..51904c92d002820815e0a3687792d8333ea70ed0 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${GUI_SRC_DIR}" ]; then
index 5db57d59eafcdef27f88dfb19251652add00a7a3..23ddea80007587cf8ecb5642ac34bebdf40dee61 100755 (executable)
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${HELLO_ROOT_DIR}" ]; then
-    if [ -f ${HELLO_ROOT_DIR}/bin/salome/VERSION ]; then
+    check_lib_version VERSION ${HELLO_ROOT_DIR}/bin/salome
+    if [ "$?" -eq "0" ]; then
        ver=`cat ${HELLO_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
        if [ "$ver" = "${VERSION}" ]; then
            return 0
@@ -32,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export HELLO_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export HELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -44,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -90,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/HELLObinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/HELLObinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export HELLO_ROOT_DIR=${PRODUCT_DIR}
@@ -110,8 +128,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HELLObin" ; fi
-export PRODUCT="HELLO_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=HELLO_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 4a5382d31656d329c55e6551ace226af10d93056..a59865ad2e0a013a5d172d8de5eafde89e9825f3 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${HELLO_SRC_DIR}" ]; then
index aafd3b9904c1fdd29bdb05aa194001fa21462cfa..16f2fbfce76f352da72bf32ad081803fffd201fe 100755 (executable)
@@ -56,7 +56,7 @@ source ${INSTALL_WORK}/$SHRC
 
 makedir ${PRODUCT_DIR}
 
-check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEsourcesV3.2.9.tar.gz -C ${INSTALL_WORK}
+check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEsourcesV3.2.10.tar.gz -C ${INSTALL_WORK}
 cd ${PRODUCT_WORK}
 cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF
 -------------------
@@ -90,7 +90,7 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEbinariesV3.2.9.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEbinariesV3.2.10.tar.gz -C ${INSTALL_ROOT}
 
 print_env
 }
@@ -101,7 +101,7 @@ export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HXX2SALOME" ; fi
-export PRODUCT="HXX2SALOME_3.2.9"
+export PRODUCT="HXX2SALOME_3.2.10"
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 8af9d42cc0f70faf860995d386fe3a302ae58995..a97e4064abab0846737c9913868d166470569bc5 100755 (executable)
@@ -40,7 +40,7 @@ install_source(){
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEDOCsourcesV3.2.9.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEDOCsourcesV3.2.10.tar.gz -C ${INSTALL_ROOT}
 
 print_env
 }
@@ -56,7 +56,7 @@ export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HXX2SALOMEDOC" ; fi
-export PRODUCT="HXX2SALOMEDOC_3.2.9"
+export PRODUCT="HXX2SALOMEDOC_3.2.10"
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index a2a28496c42a75fb5103651838969c0a3b8fd344..6b5b6fa0ff38f9c00091d9f9445a6e72ffeaccb3 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${KERNEL_ROOT_DIR}" ]; then
@@ -33,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export KERNEL_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export KERNEL_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -45,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -91,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/KERNELbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/KERNELbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # The next two symbolic links are created only for Red Hat 9 and Scientific Linux 3.0.5
 if [ -f /lib/libcrypto.so.0.9.7a ]; then
@@ -126,8 +143,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="KERNELbin" ; fi
-export PRODUCT="KERNEL_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=KERNEL_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 272712aaf1c369b4e1ed03ec3f04bfc145693b36..76bb5ce153582533519ecb6334a555c9c8636df4 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${KERNEL_SRC_DIR}" ]; then
index 2bba65176c08726921e7f521ab0fcc2239ef5cf0..0127025f6bdc0b21b14500202f4eab67c641b7ff 100755 (executable)
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${LIGHT_ROOT_DIR}" ]; then
-    if [ -f ${LIGHT_ROOT_DIR}/bin/salome/VERSION ]; then
+    check_lib_version VERSION ${LIGHT_ROOT_DIR}/bin/salome
+    if [ "$?" -eq "0" ]; then
        ver=`cat ${LIGHT_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
        if [ "$ver" = "${VERSION}" ]; then
            return 0
@@ -32,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export LIGHT_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export LIGHT_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -42,6 +56,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -86,7 +101,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/LIGHTbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/LIGHTbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export LIGHT_ROOT_DIR=${PRODUCT_DIR}
@@ -100,8 +118,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="LIGHTbin" ; fi
-export PRODUCT="LIGHT_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=LIGHT_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 5cfab8989983b4482d9001d16fd78f6a01cfac71..984d72ee1a1d4c01e4f3b734657e4a6a64e1313d 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${LIGHT_SRC_DIR}" ]; then
index 1645cc6666f2adfadc689a92d10b971950513504..7810ee1e221318b3f3e77a9b02cd603db0594bfe 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${MEDWOGUI_ROOT_DIR}" ]; then
@@ -33,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MEDWOGUI_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export MEDWOGUI_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -45,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -91,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/MEDWOGUIbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/MEDWOGUIbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export MEDWOGUI_ROOT_DIR=${PRODUCT_DIR}
@@ -105,8 +122,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="MEDWOGUIbin" ; fi
-export PRODUCT="MEDWOGUI_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=MEDWOGUI_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 2a0243edb45d5ab0ca857fce6fa524f92758765e..931f989220241ab53e76ff8238d5250d8f34705d 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${MEDWOGUI_SRC_DIR}" ]; then
index a4752305b07f3ae33e9b9ce49ef0f8f751430642..50425cbefdd91c7b3c62acfafdc720069fc851b4 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${MED_ROOT_DIR}" ]; then
@@ -33,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MED_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export MED_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -45,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -91,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/MEDbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/MEDbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export MED_ROOT_DIR=${PRODUCT_DIR}
@@ -105,8 +122,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="MEDbin" ; fi
-export PRODUCT="MED_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=MED_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 5d0349a8b4345cac139c2a154fac95fc3ec7ca9b..753f43a9b5d429d81c8b45109c0223e21f064291 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${MED_SRC_DIR}" ]; then
index b1cfcfe310e943653433f965087d695cd107ff50..702c6c129863ac0000196f5e929e7539b8d5b314 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${NETGENPLUGIN_ROOT_DIR}" ]; then
@@ -23,7 +23,6 @@ if [ -n "${NETGENPLUGIN_ROOT_DIR}" ]; then
            return 0
        fi
     fi
-  return 0
 fi
 return 1
 }
@@ -34,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export NETGENPLUGIN_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export NETGENPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -45,6 +57,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -90,7 +103,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/NETGENPLUGINbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/NETGENPLUGINbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export NETGENPLUGIN_ROOT_DIR=${PRODUCT_DIR}
@@ -104,8 +120,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="NETGENPLUGINbin" ; fi
-export PRODUCT="NETGENPLUGIN_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=NETGENPLUGIN_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 5db07e7dbaf5bb1414db2308a2db8e9804a61188..84c8a8b1deb11e907042478ceab1cbd252eee266 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${NETGENPLUGIN_SRC_DIR}" ]; then
index 1a3f4975a4b824e2d90e7640c3a9e2c750557f6d..623ce00926796ec9860c799d43eff322c9be5755 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${PYCALCULATOR_ROOT_DIR}" ]; then
@@ -33,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export PYCALCULATOR_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export PYCALCULATOR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -44,6 +57,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -89,7 +103,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/PYCALCULATORbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/PYCALCULATORbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export PYCALCULATOR_ROOT_DIR=${PRODUCT_DIR}
@@ -103,8 +120,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="PYCALCULATORbin" ; fi
-export PRODUCT="PYCALCULATOR_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=PYCALCULATOR_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index c46cbd96fb687cff2e4eece9ef45d2ddc7d7403c..9d6fb2254d179e6df40024cccab0a53fab79181f 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${PYCALCULATOR_SRC_DIR}" ]; then
index a3b928d93b9e36778478ec686dbbce6831ae92ad..b98a5d4c958038c5a95dcf696d51a85b43303fe8 100755 (executable)
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${PYHELLO_ROOT_DIR}" ]; then
-    if [ -f ${PYHELLO_ROOT_DIR}/bin/salome/VERSION ]; then
+    check_lib_version VERSION ${PYHELLO_ROOT_DIR}/bin/salome
+    if [ "$?" -eq "0" ]; then
        ver=`cat ${PYHELLO_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
        if [ "$ver" = "${VERSION}" ]; then
            return 0
@@ -32,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export PYHELLO_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export PYHELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -43,6 +57,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -88,7 +103,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/PYHELLObinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/PYHELLObinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export PYHELLO_ROOT_DIR=${PRODUCT_DIR}
@@ -107,8 +125,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="PYHELLObin" ; fi
-export PRODUCT="PYHELLO_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=PYHELLO_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 6b11ec4e25365c489f14a7c0f2368d3b419164d1..e89de61dfcf71743a45027e3fdaa6efaa6d38fef 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${PYHELLO_SRC_DIR}" ]; then
index 727127a8e223a671440040482ed343a741afd95e..3c537863f6ad48361bae9fc00aaf89f34549f9bc 100755 (executable)
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${RANDOMIZER_ROOT_DIR}" ]; then
-    if [ -f ${RANDOMIZER_ROOT_DIR}/bin/salome/VERSION ]; then
+    check_lib_version VERSION ${RANDOMIZER_ROOT_DIR}/bin/salome
+    if [ "$?" -eq "0" ]; then
        ver=`cat ${RANDOMIZER_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
        if [ "$ver" = "${VERSION}" ]; then
            return 0
@@ -32,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export RANDOMIZER_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export RANDOMIZER_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -43,6 +57,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -88,7 +103,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/RANDOMIZERbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/RANDOMIZERbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export RANDOMIZER_ROOT_DIR=${PRODUCT_DIR}
@@ -102,8 +120,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="RANDOMIZERbin" ; fi
-export PRODUCT="RANDOMIZER_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=RANDOMIZER_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index e3548e36a8ecff7a88c51978934af0aaa627d9f4..5847ea7ac481e1fd282247e6b62db1eac20f1e9c 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${RANDOMIZER_SRC_DIR}" ]; then
index 50a8ce481905f3571d2f5c833c0545d3a44b30cd..3421afbd4eedc1602e7d80efc95c5b22ac9f1a34 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 # There is no possibility to check version number
index 735bb15574bad43a531e97680009642bc92f3ddf..56525be51c9ede8f8f4290f03fc6d3a292666180 100755 (executable)
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${SIERPINSKY_ROOT_DIR}" ]; then
-    if [ -f ${SIERPINSKY_ROOT_DIR}/bin/salome/VERSION ]; then
+    check_lib_version VERSION ${SIERPINSKY_ROOT_DIR}/bin/salome
+    if [ "$?" -eq "0" ]; then
        ver=`cat ${SIERPINSKY_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
        if [ "$ver" = "${VERSION}" ]; then
            return 0
@@ -32,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export SIERPINSKY_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export SIERPINSKY_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -43,6 +57,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -88,7 +103,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/SIERPINSKYbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/SIERPINSKYbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export SIERPINSKY_ROOT_DIR=${PRODUCT_DIR}
@@ -102,8 +120,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="SIERPINSKYbin" ; fi
-export PRODUCT="SIERPINSKY_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=SIERPINSKY_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 45f5efc3794db2d214c59e6bcccf6e33b2c974eb..f98fe1f25b615cfe7a8231f99396268e29cf157f 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${SIERPINSKY_SRC_DIR}" ]; then
index abc6fa7d9f3eef7ea51c761d6e14ab44ae4e4a73..64ce811eb232940ca6b751478bb526f77eedb176 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${SMESH_ROOT_DIR}" ]; then
@@ -33,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export SMESH_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export SMESH_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -45,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -91,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/SMESHbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/SMESHbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export SMESH_ROOT_DIR=${PRODUCT_DIR}
@@ -105,8 +122,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="SMESHbin" ; fi
-export PRODUCT="SMESH_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=SMESH_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 7a23e5d8ac2b463abc1a80379982b84f84d8e47f..81585132c49767cb103242b9a90fde7004e2d400 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${SMESH_SRC_DIR}" ]; then
index c8846c185fa55f56a6bf3bbe2b832c8091b56f2a..05ae29a08bb296ff65e3bef688e433dbb3364e1c 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${SUPERV_ROOT_DIR=}" ]; then
@@ -33,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export SUPERV_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export SUPERV_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -45,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -91,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/SUPERVbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/SUPERVbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export SUPERV_ROOT_DIR=${PRODUCT_DIR}
@@ -105,8 +122,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="SUPERVbin" ; fi
-export PRODUCT="SUPERV_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=SUPERV_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index 682d8154b86ac6876f7d90fc190e27c2088b2ffe..6311769f1c6fb1b8d1262cf04c8aad5ad7611566 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${SUPERV_SRC_DIR}" ]; then
index b3e37c6e88a74225e23b5968b77f5f1be51e3090..010b1654961abbbde1cf69d2f55851c75fdf0816 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${VISU_ROOT_DIR}" ]; then
@@ -33,7 +33,20 @@ export LIB_PREFIX=64
 else
 export LIB_PREFIX=""
 fi
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+if [ "$SINGLE_DIR" == "1" ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM SALOME $DELIM $SDIR_DELIM
+export SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT} $SDIR_DELIM
+export PATH=\${SALOME_ROOT_DIR}/bin/salome:\${PATH} $SDIR_DELIM
+export LD_LIBRARY_PATH=\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH} $SDIR_DELIM
+export PYTHONPATH=\${SALOME_ROOT_DIR}/bin/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SALOME_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH} $SDIR_DELIM
+## $SDIR_DELIM
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export VISU_ROOT_DIR=\${SALOME_ROOT_DIR}
+##
+EOF
+else
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export VISU_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
@@ -45,6 +58,7 @@ if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 EOF
+fi
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 }
@@ -91,7 +105,10 @@ install_binary()
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
 source ${INSTALL_WORK}/$SHRC
 
-check_jb tar xfz ${SOURCE_DIR}/VISUbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+# create a module directory
+mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/VISUbinariesV${VERSION}.tar.gz -C ${PRODUCT_DIR}
 
 # modify all *.la files
 export VISU_ROOT_DIR=${PRODUCT_DIR}
@@ -105,8 +122,13 @@ export INSTALL_WORK=$2;
 export SOURCE_DIR=$3;
 export INSTALL_ROOT=$4;
 export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="VISUbin" ; fi
-export PRODUCT="VISU_${VERSION}"
+export PRODUCT_TYPE=$6;
+SINGLE_DIR=$7
+if [ "$SINGLE_DIR" == "1" ] ; then
+    export PRODUCT=SALOME_${VERSION}
+else
+    export PRODUCT=VISU_${VERSION}
+fi
 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
 source ./common.sh
index bfe21fd492a82bc9479a1a53ac112175bfaf6ef9..c246fa58c96711cd8b50bd316d413195acc37b6b 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.9"
+VERSION="3.2.10"
 
 check_version(){
 if [ -n "${VISU_SRC_DIR}" ]; then
index 74670241e5244dcfecbe4e6b740b5e3113d5c41f..552340306c348d33e8b7872755059850cb0ef325 100755 (executable)
@@ -13,6 +13,7 @@
 ####################################################################################
 
 export DELIM="------"
+export SDIR_DELIM="### to be removed ###"
 export SHRC="salome.sh"
 export CSHRC="salome.csh"
 
@@ -138,7 +139,19 @@ fi
 product_sequence="$2"
 for i in $product_sequence ; do
     env_file=${install_work}/env_${i}.sh
-    ( test -e $env_file && cat $env_file >> ${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