#!/bin/sh
#
# Determines if the (fundamental) ELM_HOME variable appears valid.
# This can be used as either as a stand-alone or as a call from other scripts such as "Run".
# 
# As with all ELM scripts, stay with Bourne shell (/bin/sh) for universal application.



if [ ! "$ELM_HOME" ] ;
then
  echo "###### Error: Please set the environment variable ELM_HOME"
  echo "Check the ELM documentation for directions on simple project setup."
  exit
fi

if test -d $ELM_HOME
  then
#	echo "ELM_HOME= $ELM_HOME"
	this=that
  else
	echo "ELM_HOME= $ELM_HOME"
    echo "###### Error: Your ELM_HOME directory does not exist."
    echo "Check the ELM documentation for directions on simple project setup."
    exit
fi
