#!/bin/sh # this script returns the correct value for environment variable ESMF_OS esmf_os=`uname -s` if [ $esmf_os = UNICOS/mp ]; then esmf_os=Unicos fi if [ $esmf_os = Linux ]; then unicos_test=`ls /proc | grep -i cray` if [ -n "$unicos_test" ]; then esmf_os=Unicos fi fi cygwin_test=`echo $esmf_os | grep -i cygwin` if [ -n "$cygwin_test" ]; then esmf_os=Cygwin fi mingw_test=`echo $esmf_os | grep -i mingw` if [ -n "$mingw_test" ]; then esmf_os=MinGW fi echo $esmf_os