From: vsr Date: Mon, 23 Dec 2013 14:06:31 +0000 (+0000) Subject: SALOME 7.3.0 preparation X-Git-Tag: V7_3_0~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=95717542fe9dee982a95741f6a2afad380a65280;p=tools%2Finstall.git SALOME 7.3.0 preparation --- diff --git a/config_files/release_notes.sh b/config_files/release_notes.sh index 5d83878..1175bac 100755 --- a/config_files/release_notes.sh +++ b/config_files/release_notes.sh @@ -14,11 +14,14 @@ # This procedure checks if the Release Notes file can be shown. # Returns 0 in success and 1 if any error occurs. + +VIEWER_PROGRAMS="acroread kpdf kghostview xpdf evince" + 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 + for r in ${VIEWER_PROGRAMS} ; do reader=`which ${r} 2>/dev/null` if [ "$?" = "0" ] ; then break; @@ -40,7 +43,7 @@ execute() { ROOT_DIR=`(cd ${SCRIPT_DIR}/.. ; pwd)`; # 1. find appropriate PDF files viewer - for r in acroread kpdf kghostview xpdf ; do + for r in ${VIEWER_PROGRAMS} ; do reader=`which ${r} 2> /dev/null` if [ "$?" = "0" ] ; then break;