]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
To introduce DOCUMENTATION module.
authorakl <akl@opencascade.com>
Thu, 23 Aug 2007 12:14:23 +0000 (12:14 +0000)
committerakl <akl@opencascade.com>
Thu, 23 Aug 2007 12:14:23 +0000 (12:14 +0000)
config_files/DOCUMENTATION.sh [new file with mode: 0755]

diff --git a/config_files/DOCUMENTATION.sh b/config_files/DOCUMENTATION.sh
new file mode 100755 (executable)
index 0000000..9e275bd
--- /dev/null
@@ -0,0 +1,75 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : DOCUMENTATION.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-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="3.2.7"
+
+check_version(){
+# There is no possibility to check version number
+return 0
+}
+
+print_env_bin(){
+return 1
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+#nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SRC_DIR}/DOCUMENTATIONsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+install_source
+}
+
+install_binary()
+{
+install_source
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+export PRODUCT="DOCUMENTATION_${VERSION}"
+export PRODUCT_SRC="DOCUMENTATION_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE