/[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.1 by jmc, Sat Sep 6 19:48:45 2008 UTC revision 1.3 by jmc, Wed Jan 3 16:40:30 2018 UTC
# Line 13  export CVSROOT=/u/gcmpack Line 13  export CVSROOT=/u/gcmpack
13  echo -n 'Update dir:'  echo -n 'Update dir:'
14  cd /u/u2/jmc/testing/scripts && pwd && cvs -q update -P -d  cd /u/u2/jmc/testing/scripts && pwd && cvs -q update -P -d
15    
16    #- update csail testing scripts:
17    echo -n 'Update dir:'
18    cd /u/u2/jmc/testing/csail && pwd && cvs -q update -P -d
19    
20  #-- update tools/mpack-1.6 dir :  #-- update tools/mpack-1.6 dir :
21  tmpFil=/tmp/TTT.daily_snapshot.$$  tmpFil=/tmp/TTT.daily_snapshot.$$
22  exe=munpack  exe=munpack
# Line 21  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 34  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 50  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.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22