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

Annotation of /mitgcm.org/scripts/build_mitgcm_front

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


Revision 1.5 - (hide annotations) (download)
Fri Jan 12 21:45:14 2018 UTC (7 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.4: +8 -7 lines
update dir path

1 jmc 1.1 #! /usr/bin/env bash
2    
3 jmc 1.5 # $Header: /u/gcmpack/mitgcm.org/scripts/build_mitgcm_front,v 1.4 2008/09/18 20:05:26 jmc Exp $
4 jmc 1.1
5 jmc 1.3 #-- create a daily log file (if not already there)
6 jmc 1.5 cd $HOME/testing/logs
7 jmc 1.3 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 jmc 1.5 n=$(( `ls ${logpfx}* 2>/dev/null | wc -l` - 10 ))
13 jmc 1.3 if test $n -gt 0 ; then
14 jmc 1.5 echo -n ' remove files: '
15 jmc 1.3 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 jmc 1.1
22 jmc 1.3 echo '' >> $logfile
23     date >> $logfile
24     cat >> $logfile <<EOF
25 jmc 1.1 ==========================================================
26     Building the mitgcm.org front pages:
27     ==========================================================
28     EOF
29 jmc 1.5 #export CVSROOT='/u/gcmpack'
30     #cd $HOME/testing/front_content && cvs -q update -P -d
31     #-----------
32     cd $HOME/testing/front_content && make install >> $logfile 2>&1
33 jmc 1.4 retval=$?
34     if test "x$retval" != x0 ; then
35     echo "'make install' return with ERROR $retval"
36     fi

  ViewVC Help
Powered by ViewVC 1.1.22