Salome HOME
Prepare SALOME 7.3.0
[tools/install.git] / config_files / release_notes.sh
index 9b3f3b0c04c03b7bbca09c3c8b93d52f70dabafd..5d83878a3731103290f5e39ffdea8288855f9bb0 100755 (executable)
@@ -6,7 +6,7 @@
 #  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
 #  Project   : SALOME
 #  Module    : Installation Wizard
-#  Copyright : 2002-2008 CEA
+#  Copyright : 2002-2013 CEA
 #
 #  This script is the part of the SALOME installation procedure.
 #
@@ -19,15 +19,15 @@ check_enabled()
     ROOT_DIR=`(cd ${SCRIPT_DIR}/.. ; pwd)`;
     # 1. check if there is appropriate PDF files viewer
     for r in acroread kpdf kghostview xpdf ; do
-       reader=`which $r 2>/dev/null`
-       if [ "$?" == "0" ] ; then
+       reader=`which ${r} 2>/dev/null`
+       if [ "$?" = "0" ] ; then
            break;
        fi
     done
     # 2. check if Release Notes file is available
     if [ "${ROOT_DIR}" != "" ] ; then 
        rn_files=`find ${ROOT_DIR} -maxdepth 1 -name "*Release_Notes.pdf"`
-       if [ "$?" == "0" ] && [ "$rn_files" != "" ] && [ "$reader" != "" ] ; then
+       if [ "$?" = "0" ] && [ "${rn_files}" != "" ] && [ "${reader}" != "" ] ; then
            return 0;
        fi
     fi
@@ -41,16 +41,16 @@ execute()
     ROOT_DIR=`(cd ${SCRIPT_DIR}/.. ; pwd)`;
     # 1. find appropriate PDF files viewer
     for r in acroread kpdf kghostview xpdf ; do
-       reader=`which $r 2> /dev/null`
-       if [ "$?" == "0" ] ; then
+       reader=`which ${r} 2> /dev/null`
+       if [ "$?" = "0" ] ; then
            break;
        fi
     done
     # 2. find Release Notes file and open it in the viewer
     if [ "${ROOT_DIR}" != "" ] ; then 
        rn_file=`find ${ROOT_DIR} -maxdepth 1 -name "*Release_Notes.pdf"`
-       if [ "$?" == "0" ] && [ "$rn_file" != "" ] && [ "$reader" != "" ] ; then
-           $reader ${rn_file} &
+       if [ "$?" = "0" ] && [ "${rn_file}" != "" ] && [ "${reader}" != "" ] ; then
+           ${reader} ${rn_file} &
            return 0;
        fi
     fi
@@ -68,4 +68,4 @@ INST_ROOT=$2;
 INSTALL_WORK=$3;
 
 # Run the procedure
-$PROCEDURE
+${PROCEDURE}