#! /bin/sh
###############################################################################
#																			  #
#				Copyright (C) 1985 - 1993, Alias Research, Inc.				  #
#																			  #
#	  These coded instructions,  statements and  computer programs contain	  #
#	  unpublished information proprietary to Alias Research, Inc.  and are	  #
#	  protected by the Canadian and US Federal copyright law. They may not	  #
#	  be disclosed to third parties  or copied  or duplicated, in whole or	  #
#	  in part,  without the prior written consent of Alias Research,  Inc.	  #
#																			  #
# Unpublished-rights reserved under the Copyright Laws of the United States.  #
#																			  #
###############################################################################
#
#	$Source: /tmp_mnt/repo/root/usr/store/alias5.1/src/Utility/stand/RCS/onlineDocs.sh_sgi,v $
#	$Revision: 5.1 $
#	$Author: bfreeman $
#	$Date: 94/06/21 17:25:27 $
#
###############################################################################
#
#	filename: onlineDocs
#	purpose : to run the online document system
#
#	usage:
#
#	onlineDocs [-h]
#
#	where -h displays a help message and exits.
#
###############################################################################

ALIAS_LOC=${ALIAS_LOCATION-/usr/alias}
PROGRAM=$ALIAS_LOC/bin/hyperhelp

programname=`basename $0`

usage()
{
	/bin/cat << EOF
PURPOSE:   To Run The Online Document System
USAGE:     $programname
FLAGS:     -h - displays this help message.
EOF

	exit 0
}

while getopts h arg
do
	case $arg in
	h)	usage;;
	\?)
		error "invalid option -$arg" ;;
	esac
done

if [ -x $PROGRAM ]; then
	cd $ALIAS_LOC/Help
	$PROGRAM bookshelf.hlp
else
	REPLY=`aliasWarning -b Ok -t Error -s "Online Documents" -S "Can not execute: $PROGRAM"`
	exit 1
fi
