#!/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: /u/bfreeman/RCS/viewErrlog.sh,v $
#	$Revision: 6.2 $
#	$Author: bfreeman $
#	$Date: 94/11/22 15:34:15 $
#
###############################################################################
#
#	filename: viewErrlog
#	purpose : to display the Alias errlog file (./errlog)
#
#	usage:
#
#	viewErrlog [-h]
#
#	where -h displays a help message and exits.
#
###############################################################################

Usage()
{
	/bin/cat << EOF

Purpose:   Display the Alias errlog
Usage:     $0 [-Flags]
Flags:     h - displays this help message.

EOF
}

set -- `getopt :h $*`

while [ $1 != -- ]
do
	case $opt in
	 h )
		Usage
		exit 0
		;;
	 \? )
		Usage
		exit 1
		;;
	esac
done

EDITOR=`get_alias_variable ALIAS_EDITOR`
if test "$EDITOR" = "CUSTOM"
then
	EDITOR=`get_alias_variable ALIAS_EDITOR_APP`
fi
$EDITOR ./errlog

exit 0
