/[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.23 by jmc, Wed May 5 15:16:41 2010 UTC revision 1.24 by jmc, Sun Oct 31 02:25:05 2010 UTC
# Line 211  for file in $all_files ; do Line 211  for file in $all_files ; do
211        continue        continue
212      fi      fi
213      tdir=`cat $TEMPDIR"/out" | head -1 | sed -e 's|^./||g' | cut -d '/' -f 1`      tdir=`cat $TEMPDIR"/out" | head -1 | sed -e 's|^./||g' | cut -d '/' -f 1`
    #tdir=`( cd $TEMPDIR ; /bin/ls -l | grep '^d' | head -1 | awk '{print $NF}' )`  
214      if test -d $TEMPDIR/$tdir ; then      if test -d $TEMPDIR/$tdir ; then
215        rm -f $TEMPDIR"/out"        rm -f $TEMPDIR"/out"
216      else      else
# Line 257  for file in $all_files ; do Line 256  for file in $all_files ; do
256      #-- copy to $locDir and rename if necessary      #-- copy to $locDir and rename if necessary
257      sdir=$tdir      sdir=$tdir
258      if test -e $locDir"/"$tdir ; then      if test -e $locDir"/"$tdir ; then
259            sdir=`echo $tdir | sed 's/_[0-9]*$//'`
260          ad=0          ad=0
261          while test -e $locDir"/"$tdir"_"$ad ; do          while test -e $locDir"/"$sdir"_"$ad ; do
262              ad=$(( $ad + 1 ))              ad=$(( $ad + 1 ))
263          done          done
264          sdir=$tdir"_"$ad          sdir=$sdir"_"$ad
265      fi      fi
266      if test $PRT = 2 ; then      if test $PRT = 2 ; then
267        if test "x$locDir" = "x$OUTDIR"        if test "x$locDir" = "x$OUTDIR"

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.22