--- mitgcm.org/front_content/parse_emails 2005/04/04 01:36:04 1.3 +++ mitgcm.org/front_content/parse_emails 2007/11/29 23:55:56 1.8 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/parse_emails,v 1.3 2005/04/04 01:36:04 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/parse_emails,v 1.8 2007/11/29 23:55:56 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 @@ -28,7 +28,7 @@ INDIR="/u/edhill/Mail/MITgcm-test" OUTDIR= TEMPDIR=./ptmp -MUNPACK=/usr/local/bin/munpack +MUNPACK=/u/edhill/local/bin/munpack # Parse options ac_prev= @@ -83,6 +83,8 @@ echo "ERROR: directory \"$OUTDIR\" doesn't exist and can't be created" exit 1 fi + chgrp gcmpack $OUTDIR + chmod 775 $OUTDIR fi echo "Using OUTDIR=\"$OUTDIR\"" @@ -127,13 +129,12 @@ while test -e $OUTDIR"/"$tdir"_"$ad ; do ad=$(( $ad + 1 )) done - mv $TEMPDIR"/"$tdir $OUTDIR"/"$tdir"_"$ad + mv $TEMPDIR"/"$tdir $OUTDIR"/"$tdir"_"$ad > /dev/null 2>&1 + chmod -R a+rx $OUTDIR"/"$tdir"_"$ad > /dev/null 2>&1 + gzip $OUTDIR"/"$tdir"_"$ad"/output.txt" else - mv $TEMPDIR"/"$tdir $OUTDIR - fi - - # If it exists, gzip the "output.txt" file. - if test -r $OUTDIR"/"$tdir"/output.txt" ; then + mv $TEMPDIR"/"$tdir $OUTDIR > /dev/null 2>&1 + chmod -R a+rx $OUTDIR"/"$tdir > /dev/null 2>&1 gzip $OUTDIR"/"$tdir"/output.txt" fi @@ -143,18 +144,18 @@ done echo " done" -echo -n "gzipping all the \"output.txt\" files ..." -( - cd $OUTDIR - outp=`find . -name output.txt` - if test "x$outp" != x ; then - gzip $outp - fi -) -echo " done" - -echo -n "setting permissions to world-readable ..." -chmod -R a+rx $OUTDIR -echo " done" +# echo -n "gzipping all the \"output.txt\" files ..." +# ( +# cd $OUTDIR +# outp=`find . -name output.txt` +# if test "x$outp" != x ; then +# gzip $outp +# fi +# ) +# echo " done" + +# echo -n "setting permissions to world-readable ..." +# chmod -R a+rx $OUTDIR > /dev/null 2>&1 +# echo " done"