3 ####################################################################################
4 # File : release_notes.sh
5 # Created : Tue Oct 30 11:11:23 2006
6 # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
8 # Module : Installation Wizard
9 # Copyright : 2002-2014 CEA
11 # This script is the part of the SALOME installation procedure.
13 ####################################################################################
15 # This procedure checks if the Release Notes file can be shown.
16 # Returns 0 in success and 1 if any error occurs.
18 VIEWER_PROGRAMS="acroread kpdf kghostview xpdf evince"
22 ROOT_DIR=`(cd ${SCRIPT_DIR}/.. ; pwd)`;
23 # 1. check if there is appropriate PDF files viewer
24 for r in ${VIEWER_PROGRAMS} ; do
25 reader=`which ${r} 2>/dev/null`
26 if [ "$?" = "0" ] ; then
30 # 2. check if Release Notes file is available
31 VER=`echo ${SALOME_VERSION} | tr "." "_"`
32 rn_file=${ROOT_DIR}/SALOME_${VER}_Release_Notes.pdf
33 if [ -f "${rn_file}" ] && [ "${reader}" != "" ] ; then
39 # This procedure is used to show Release Notes file.
40 # Returns 0 in success and 1 if any error occurs.
43 ROOT_DIR=`(cd ${SCRIPT_DIR}/.. ; pwd)`;
44 # 1. find appropriate PDF files viewer
45 for r in ${VIEWER_PROGRAMS} ; do
46 reader=`which ${r} 2>/dev/null`
47 if [ "$?" = "0" ] ; then
51 # 2. find Release Notes file and open it in the viewer
52 VER=`echo ${SALOME_VERSION} | tr "." "_"`
53 rn_file=${ROOT_DIR}/SALOME_${VER}_Release_Notes.pdf
54 if [ -f "${rn_file}" ] && [ "${reader}" != "" ] ; then
55 ${reader} ${rn_file} &
61 SCRIPT_DIR=`dirname $0`
63 source ${SCRIPT_DIR}/common.sh
65 # Set general usage variables from the command line parameters:
66 # $0 is the path to this script itself
67 # $1 is the name of the procedure to be run
68 # $2 is the installation directory path (not currently used)
69 # $3 is the temporary directory path (not currently used)