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

Diff of /mitgcm.org/scripts/build_mitgcm_front

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

revision 1.2 by jmc, Fri Feb 29 01:51:27 2008 UTC revision 1.6 by jmc, Sun Jan 14 20:58:55 2018 UTC
# Line 2  Line 2 
2    
3  # $Header$  # $Header$
4    
5    #-- create a daily log file (if not already there)
6    cd $HOME/testing/logs
7    logpfx="bld_front_" ; sfx=`date +%m%d`
8    logfile="../logs/${logpfx}$sfx"
9    if test -e $logfile ; then :
10    else
11    #-- clean-up old log files:
12      n=$(( `ls ${logpfx}* 2>/dev/null | wc -l` - 10 ))
13      if test $n -gt 0 ; then
14      echo -n ' remove files: '
15        ls -lt ${logpfx}* | tail -"$n"
16        ls -t  ${logpfx}* | tail -"$n" | xargs rm -f
17      fi
18      echo ' create new log file:' $logfile
19      touch $logfile
20    fi
21    
22  cat <<EOF  echo '' >> $logfile
23  ==========================================================  date >> $logfile
24  Building the mitgcm.org front pages:  cat >> $logfile <<EOF
25  ==========================================================  ==================================================================
26    Building the mitgcm.org front pages on: `hostname` as: $USER
27    ==================================================================
28  EOF  EOF
29  #export CVSROOT='/u/gcmpack'  #export CVSROOT='/u/gcmpack'
30  #cd /u/u2/jmc/testing/front_content && cvs -q update -P -d  #cd $HOME/testing/front_content && cvs -q update -P -d
31  cd /u/u2/jmc/testing/front_content && make install  #-----------
32    echo "run 'make install' in ~testing/front_content/ :" >> $logfile
33    cd $HOME/testing/front_content && make install >> $logfile 2>&1
34    retval=$?
35    if test "x$retval" != x0 ; then
36      echo "'make install' return with ERROR $retval"
37    fi

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

  ViewVC Help
Powered by ViewVC 1.1.22