-#!/bin/sh
+#!/bin/bash -noprofile
####################################################################################
# File : start_salome.sh
# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
# Project : SALOME
# Module : Installation Wizard
-# Copyright : 2002-2006 CEA
+# Copyright : 2002-2008 CEA
#
# This script is the part of the SALOME installation procedure.
#
# Returns 0 in success and 1 if any error occurs.
check_enabled()
{
- if [ -f ${INSTALL_ROOT}/env_products.sh ] ; then
- source ${INSTALL_ROOT}/env_products.sh
+ if [ -f ${INST_ROOT}/env_products.sh ] ; then
+ source ${INST_ROOT}/env_products.sh
fi
- if [ "${KERNEL_ROOT_DIR}" != "" ] && [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
+ if [ "${KERNEL_ROOT_DIR}" != "" ] && [ "${GUI_ROOT_DIR}" != "" ] &&
+ [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
return 0;
fi
return 1;
# Returns 0 in success and 1 if any error occurs.
execute()
{
- if [ -f ${INSTALL_ROOT}/env_products.sh ] ; then
- source ${INSTALL_ROOT}/env_products.sh
+ if [ -f ${INST_ROOT}/env_products.sh ] ; then
+ source ${INST_ROOT}/env_products.sh
fi
- if [ "${KERNEL_ROOT_DIR}" != "" ] && [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
+ if [ "${KERNEL_ROOT_DIR}" != "" ] && [ "${GUI_ROOT_DIR}" != "" ] &&
+ [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
runSalome >& /dev/null
if [ "$?" == "0" ] ; then
return 0;
# $3 is the temporary directory path
SCRIPT_DIR=`dirname $0`
PROCEDURE=$1;
-INSTALL_ROOT=$2;
+INST_ROOT=$2;
INSTALL_WORK=$3;
# Run the procedure