#!/bin/sh
#  $Id: license_info.sh 103141 2005-06-20 19:23:10Z peterc $
#  Copyright (C) 2002-2003 Tarantella, Inc.
#  This software code contains proprietary information 
#  and should be treated as confidential.
#
#  Component: License info command
#  Author: chrisre
#
#  Produces a signed message for use when upgrading.
#


if [ -f $TTAMSG/common -a -f $TTAMSG/license_info ]; then
  . $TTAMSG/common
  . $TTAMSG/license_info
else
  echo "Unable to open message file: $TTAMSG/license_info"
  exit 1
fi


if [ "$#" != "0" ] ; then

    # See if the user is requesting help
    if [ "$1" = "--help" ]; then
        echo "$info_long_usage"
        exit 0
    else 
        echo "$l_invalid_arg1$1$l_invalid_arg2"
        echo "$info_short_usage"
        exit 1
    fi
fi

echo "$info_msg_header"
$TTAINSTDIR/bin/bin/ttaregisterinfo $TTAINSTDIR
err=$?
if [ "$err" != "0" ] ; then
    echo "$info_msg_failure"
    exit $err
fi

echo "$info_msg_footer"


