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

Contents of /mitgcm.org/scripts/build_mitgcm_front

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


Revision 1.3 - (show annotations) (download)
Wed Mar 5 00:56:11 2008 UTC (16 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.2: +21 -4 lines
keep log files in dedicated dir (instead of filling my mail box)

1 #! /usr/bin/env bash
2
3 # $Header: /u/gcmpack/mitgcm.org/scripts/build_mitgcm_front,v 1.2 2008/02/29 01:51:27 jmc Exp $
4
5 #-- create a daily log file (if not already there)
6 cd /u/u2/jmc/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}* | 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 echo '' >> $logfile
23 date >> $logfile
24 cat >> $logfile <<EOF
25 ==========================================================
26 Building the mitgcm.org front pages:
27 ==========================================================
28 EOF
29 #export CVSROOT='/u/gcmpack'
30 #cd /u/u2/jmc/testing/front_content && cvs -q update -P -d
31 cd /u/u2/jmc/testing/front_content && make install >> $logfile

  ViewVC Help
Powered by ViewVC 1.1.22