/[MITgcm]/mitgcm.org/front_content/parse_emails
ViewVC logotype

Diff of /mitgcm.org/front_content/parse_emails

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4 by edhill, Wed Jun 22 13:39:42 2005 UTC revision 1.5 by edhill, Mon Nov 28 13:34:31 2005 UTC
# Line 128  for file in $all_files ; do Line 128  for file in $all_files ; do
128              ad=$(( $ad + 1 ))              ad=$(( $ad + 1 ))
129          done          done
130          mv $TEMPDIR"/"$tdir $OUTDIR"/"$tdir"_"$ad          mv $TEMPDIR"/"$tdir $OUTDIR"/"$tdir"_"$ad
131            chmod -R a+rx $OUTDIR"/"$tdir"_"$ad > /dev/null 2>&1
132            gzip $OUTDIR"/"$tdir"_"$ad"/output.txt"
133      else      else
134          mv $TEMPDIR"/"$tdir $OUTDIR          mv $TEMPDIR"/"$tdir $OUTDIR
135      fi          chmod -R a+rx $OUTDIR"/"$tdir > /dev/null 2>&1
   
     #  If it exists, gzip the "output.txt" file.  
     if test -r $OUTDIR"/"$tdir"/output.txt" ; then  
136          gzip $OUTDIR"/"$tdir"/output.txt"          gzip $OUTDIR"/"$tdir"/output.txt"
137      fi      fi
138    
# Line 143  for file in $all_files ; do Line 142  for file in $all_files ; do
142  done  done
143  echo "  done"  echo "  done"
144    
145  echo -n "gzipping all the \"output.txt\" files ..."  # echo -n "gzipping all the \"output.txt\" files ..."
146  (  # (
147      cd $OUTDIR  #     cd $OUTDIR
148      outp=`find . -name output.txt`  #     outp=`find . -name output.txt`
149      if test "x$outp" != x ; then  #     if test "x$outp" != x ; then
150          gzip $outp  #       gzip $outp
151      fi  #     fi
152  )  # )
153  echo "  done"  # echo "  done"
154    
155  echo -n "setting permissions to world-readable ..."  # echo -n "setting permissions to world-readable ..."
156  chmod -R a+rx $OUTDIR > /dev/null 2>&1  # chmod -R a+rx $OUTDIR > /dev/null 2>&1
157  echo "  done"  # echo "  done"
158    
159    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22