#!/bin/bash

# ----------------------------------------------------------
# RPC Project :
# RPC_doc_GEOS : give GEOS documentation
# works without argument
# P. Robert, LPP, 2021-01
# ----------------------------------------------------------


appli=`basename $0`
appli36=`echo "$appli                                 " | cut -c1-36`
Narg=0

if( (test $# = 1 ) && (test $1 = -h ) ) ; then hh=1 ; else hh=0 ; fi

if test $# != $Narg || test $hh = 1
   then
   echo "$appli : Display the RoProc document"
   echo "$appli   require $Narg argument(s)"
   echo ""
   if test $hh = 1 ; then exit 0 ; fi
   echo " $appli36 : *** ERROR ! Command aborted." >&2
   exit 1
fi



echo ===================================================================
echo

which $R_SOFT_SPLASH > /dev/null

if (test $? != 0 ) 
   then
       echo "No soft to display pdf files"
   else
       $R_SOFT_SPLASH $RPC_DIR/doc/doc_RoProc_V5p1.pdf 2> /dev/null &
fi  

echo "MENU               NORMAL TERMINATION"  >&2


echo
echo ===================================================================

