From 95717542fe9dee982a95741f6a2afad380a65280 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 23 Dec 2013 14:06:31 +0000 Subject: [PATCH] SALOME 7.3.0 preparation --- config_files/release_notes.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.2