#!/bin/sh
# This script is automatically generated at install time by
# the installation process.  It starts the Adobe Acrobat Reader
# to view the IDL Online Manuals

APPLICATION=`basename $0`

if [ "$IDL_DIR" = "" ]; then
    IDL_DIR=/opt/rsi/idl_5.5
    export IDL_DIR 
fi
IDL_BIN="$IDL_DIR/bin"

if [ ! -f $IDL_DIR/docs/onlguide.pdf ]; then
   echo "      The IDL Online Manuals have not been installed.  Please consult the installation guide for instructions on installing the IDL Online manuals."
   exit 0
fi


acroread  $IDL_DIR/docs/onlguide.pdf 
 
if [ "$?" != "0" ]; then
 
echo "
      There was an error starting the Adobe Acrobat Reader.  Please check to see if the Acrobat Reader is installed and included in your path.  Adobe Acrobat Reader 4.0 with Search has been included on your IDL CD-ROM in the /rdr_srch directory along with the installation instructions in the instguid.txt file.

Visit Adobe Systems Web site at www.adobe.com for the latest information and downloads concerning Acrobat Reader.
 
"
 exit 1
fi 
