#!/bin/sh

umask 002

export PGI=/opt/pgi/beta
export LM_LICENSE_FILE=$PGI/license.dat

cd ~oplapb

#sleep 6600

OUTDIR=$HOME/builds

$HOME/bin/check_release /usr/nfs/common/lapb/operational/laps run_yes | grep -v "Maximum line" 1> $OUTDIR/checkrelease.txt 2> $OUTDIR/checkrelease.err

cat $OUTDIR/checkrelease.err >> $OUTDIR/checkrelease.txt

NOTIFY=oplapb.gsd@noaa.gov,Isidora.Jankov@noaa.gov,Edward.Tollerud@noaa.gov,Kirk.L.Holub@noaa.gov,Daniel.L.Birkenheuer@noaa.gov

mutt -s 'Results of Weekly Build' $NOTIFY < $OUTDIR/checkrelease.txt 1> $OUTDIR/check_release_driver.txt 2> $OUTDIR/check_release_driver.err