#! /usr/bin/env bash # # $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/example_scripts/csail/setenv_OpenAD.sh,v 1.1 2014/07/17 23:11:50 jmc Exp $ # $Name: $ ########################################################## # This file is part of OpenAD released under the LGPL. # # The full COPYRIGHT notice can be found in the top # # level directory of the OpenAD distribution # ########################################################## # this set some env. vars such as "OPENADROOT" # (needed to generate and use Makefile) #./tools/setenv/setenv.py --shell=sh > setenv.tmp~ tmp_file="/tmp/setenv_OpenAD.$$" #echo $tmp_file /scratch/heimbach/OpenAD/tools/setenv/setenv.py --shell=sh > $tmp_file if [ $? -ne 0 ] then echo "Error executing ./tools/setenv/setenv.py --shell=sh > $tmp_file" else source $tmp_file if [ $? -ne 0 ] then echo "Error executing source $tmp_file" else rm -f $tmp_file fi fi