#!/bin/sh # # Copyright(c) 1998, Space Science and Engineering Center, UW-Madison # Refer to "McIDAS Software Acquisition and Distribution Policies" # in the file mcidas/data/license.txt # # $Id: mcservsh.sh,v 1.5 1998/05/06 15:51:03 dglo Rel $ # #------- # mcservsh - front end to mcserv that possibly sources $HOME/.mcenv # in the remote server account to set the environment # # Usage: mcservsh [-H homedir] # # where -H is used to give the home directory of the server account. # # The .mcenv file must use /bin/sh syntax. # Among other things, this means that it may not use '~'. # # Two environment variables are available: # $HOME is set to the home directory of the remote # server account # $McINST_ROOT is set to the home directory of the mcidas # account #------- # The following assignment statement is edited by the makefile to # use the correct value. TZ=GMT export TZ McINST_ROOT= case $1 in -H) HOME="$2" shift shift [ -f "$HOME/.mcenv" ] && . "$HOME/.mcenv" ;; esac exec $McINST_ROOT/bin/mcserv