/[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.25 by jmc, Fri Mar 11 18:18:44 2011 UTC revision 1.26 by jmc, Fri Jan 11 20:49:13 2013 UTC
# Line 426  while [ $n -lt $Nbl ] ; do Line 426  while [ $n -lt $Nbl ] ; do
426    
427      #-- copy to $locDir and rename if necessary      #-- copy to $locDir and rename if necessary
428      sdir=$tdir      sdir=$tdir
429      if test -e $locDir"/"$tdir ; then  #   if test -e $locDir"/"$tdir ; then
430          sdir=`echo $tdir | sed 's/_[0-9]*$//'`          sdir=`echo $tdir | sed 's/_[0-9]*$//'`
431          ad=0          ad=0
432          while test -e $locDir"/"$sdir"_"$ad ; do          while test -e $locDir"/"$sdir"_"$ad ; do
433              ad=$(( $ad + 1 ))              ad=$(( $ad + 1 ))
434          done          done
435          sdir=$sdir"_"$ad          sdir=$sdir"_"$ad
436      fi  #   fi
437      if [ $PRT -ge 1 ] ; then      if [ $PRT -ge 1 ] ; then
438        if test "x$locDir" = "x$OUTDIR"        if test "x$locDir" = "x$OUTDIR"
439        then echo " '$sdir' ($prcM)"        then echo " '$sdir' ($prcM)"

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.22