/[MITgcm]/mitgcm.org/scripts/daily_update
ViewVC logotype

Diff of /mitgcm.org/scripts/daily_update

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

revision 1.2 by jmc, Fri Jun 5 21:00:54 2009 UTC revision 1.3 by jmc, Wed Jan 3 16:40:30 2018 UTC
# Line 25  echo -n 'Update dir:' ; pwd Line 25  echo -n 'Update dir:' ; pwd
25  chg=`cvs -q update -P -d | tee $tmpFil | sed '/^?/d' | wc -l`  chg=`cvs -q update -P -d | tee $tmpFil | sed '/^?/d' | wc -l`
26  #echo "chg ='$chg'"  #echo "chg ='$chg'"
27  cat $tmpFil ; rm -f $tmpFil  cat $tmpFil ; rm -f $tmpFil
28  if test "x$chg" != x0 ; then  if test "x$chg" != x0 ; then
29    if test -f $exe ; then echo " removing: $exe force re-build." ; fi    if test -f $exe ; then echo " removing: $exe force re-build." ; fi
30    rm -f $exe    rm -f $exe
31  fi  fi
32    
33  #- update front-page building dir:  #- update front-page building dir:
# Line 38  cd /u/u2/jmc/testing/front_content && pw Line 38  cd /u/u2/jmc/testing/front_content && pw
38  cd /u/u2/jmc/testing/logs  cd /u/u2/jmc/testing/logs
39  n=$(( `ls bld_manual.* | wc -l` - 10 ))  n=$(( `ls bld_manual.* | wc -l` - 10 ))
40  if test $n -gt 0 ; then  if test $n -gt 0 ; then
41    echo -n ' remove files: '    echo -n ' remove files: '
42      ls -lt bld_manual.* | tail -"$n"      ls -lt bld_manual.* | tail -"$n"
43      ls -t  bld_manual.* | tail -"$n" | xargs rm -f      ls -t  bld_manual.* | tail -"$n" | xargs rm -f
44  fi  fi
# Line 54  if test $n -gt 0 ; then Line 54  if test $n -gt 0 ; then
54      ls -t  check_outp_*.txt | tail -"$n" | xargs rm -f      ls -t  check_outp_*.txt | tail -"$n" | xargs rm -f
55  fi  fi
56    
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22