File mttroot/mtt/bin/mtt_check_var artifact 05224a0c69 part of check-in ff8c1ba3ea


#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: mtt_check_var

# P.J.Gawthrop July 1997
# Copyright (c) P.J.Gawthrop 1997


###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  1997/07/27 13:11:37  peterg
## Initial revision
##
###############################################################

var=$1
name=$2
print=$3

if [ -z "$1"  ]; then
 echo '***** Environment variable' $name 'not set. *****'
 echo 'Check that mttrc or mttrc.csh has been invoked.'
 echo
 exit
fi

if [ "$print" = "print" ]; then
 echo Environment variable $name set to $var
fi

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]