#! /bin/sh
#
# usage:        lmerror.sh error_message
#
# abstract:     This Bourne Shell script is execed by MATLAB when it
#		fails to startup due to a license manager problem.
#		The error message is passed as an argument.
#
# note(s):      1. The code to call lmdebug at this point is commented
#		   out.
#
# Copyright (c) 1986-93 by The MathWorks, Inc.
# $Revision: 1.3 $  $Date: 1993/06/07 14:18:22 $
#----------------------------------------------------------------------------
#
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    echo ''
    echo '------------------------------------------------------------------'
    echo '>>>>> MATLAB did not start due to a license manager problem. <<<<<'
    echo ''
    echo '      For troubleshooting help see the README file in the'
    echo '      $MATLAB/etc directory. As a last resort you can execute'
    echo '      the script, $MATLAB/etc/lmdebug.'
    echo ''
    echo '          $MATLAB = '"$MATLAB"
    echo ''
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#    mesg="      Run the 'lmdebug' script now? (y/[n])"
#    . $MATLAB/install/echon.sh
#    read ans
#    if [ `expr "$ans" : '[Yy].*'` -ne 0 ]; then
#	. $MATLAB/etc/lmdebug
#    else
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    echo '------------------------------------------------------------------'
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#    fi
    exit 0
