--- mitgcm.org/front_content/parse_emails 2008/03/04 17:21:40 1.16 +++ mitgcm.org/front_content/parse_emails 2008/09/18 20:13:36 1.18 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/parse_emails,v 1.16 2008/03/04 17:21:40 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/parse_emails,v 1.18 2008/09/18 20:13:36 jmc Exp $ # # The purpose of this script is to parse the emails produced by the # MITgcm/verificaton/testreport script and store the data in a @@ -87,6 +87,7 @@ *) # copy the file list to FL_# + date echo "Error: don't understand argument \"$ac_option\"" usage ;; @@ -96,6 +97,7 @@ done if test ! -x $MUNPACK ; then + date echo "ERROR: \"$MUNPACK\" is not executable" exit 2 fi @@ -103,6 +105,7 @@ mkdir $OUTDIR RETVAL=$? if test "x$RETVAL" != x0 ; then + date echo "ERROR: directory \"$OUTDIR\" doesn't exist and can't be created" exit 3 fi @@ -118,11 +121,12 @@ echo "Using INDIR=\"$INDIR\"" echo -n "Unpacking the emails ..." elif test $nb_files != 0 ; then - echo "Unpacking $nb_files emails from '$INDIR' to '$OUTDIR'" + echo -n "Unpacking $nb_files emails ("`date` if test "x$ADDRERR" != x ; then - echo " "`date`" (send msg to '$ADDRERR' if Error)" + echo -n ", err-msg: '$ADDRERR'" fi - if test $PRT = 2 ; then echo -n " dir:" ; fi + echo ")" + echo " from '$INDIR' to '$OUTDIR'" fi for file in $all_files ; do @@ -205,7 +209,7 @@ done sdir=$tdir"_"$ad fi - if test $PRT = 2 ; then echo -n " '$sdir'" ; fi + if test $PRT = 2 ; then echo " '$sdir'" ; fi mv $TEMPDIR"/"$tdir $OUTDIR"/"$sdir > /dev/null 2>&1 RETVAL=$? if test "x$RETVAL" != x0 ; then @@ -228,5 +232,4 @@ done if test $PRT = 1 ; then echo " done" ; fi -if test $PRT = 2 -a $nb_files != 0 ; then echo "" ; fi