--- mitgcm.org/scripts/daily_update 2009/06/05 21:00:54 1.2 +++ mitgcm.org/scripts/daily_update 2018/01/03 16:40:30 1.3 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/daily_update,v 1.2 2009/06/05 21:00:54 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/daily_update,v 1.3 2018/01/03 16:40:30 jmc Exp $ # update several dir. which are used for: # - front_page building @@ -25,9 +25,9 @@ chg=`cvs -q update -P -d | tee $tmpFil | sed '/^?/d' | wc -l` #echo "chg ='$chg'" cat $tmpFil ; rm -f $tmpFil -if test "x$chg" != x0 ; then - if test -f $exe ; then echo " removing: $exe force re-build." ; fi - rm -f $exe +if test "x$chg" != x0 ; then + if test -f $exe ; then echo " removing: $exe force re-build." ; fi + rm -f $exe fi #- update front-page building dir: @@ -38,7 +38,7 @@ cd /u/u2/jmc/testing/logs n=$(( `ls bld_manual.* | wc -l` - 10 )) if test $n -gt 0 ; then - echo -n ' remove files: ' + echo -n ' remove files: ' ls -lt bld_manual.* | tail -"$n" ls -t bld_manual.* | tail -"$n" | xargs rm -f fi @@ -54,4 +54,3 @@ ls -t check_outp_*.txt | tail -"$n" | xargs rm -f fi -