3 |
# $Header$ |
# $Header$ |
4 |
|
|
5 |
#-- create a daily log file (if not already there) |
#-- create a daily log file (if not already there) |
6 |
cd /u/u2/jmc/testing/logs |
cd $HOME/testing/logs |
7 |
logpfx="bld_front_" ; sfx=`date +%m%d` |
logpfx="bld_front_" ; sfx=`date +%m%d` |
8 |
logfile="../logs/${logpfx}$sfx" |
logfile="../logs/${logpfx}$sfx" |
9 |
if test -e $logfile ; then : |
if test -e $logfile ; then : |
10 |
else |
else |
11 |
#-- clean-up old log files: |
#-- clean-up old log files: |
12 |
n=$(( `ls ${logpfx}* | wc -l` - 10 )) |
n=$(( `ls ${logpfx}* 2>/dev/null | wc -l` - 10 )) |
13 |
if test $n -gt 0 ; then |
if test $n -gt 0 ; then |
14 |
echo -n ' remove files: ' |
echo -n ' remove files: ' |
15 |
ls -lt ${logpfx}* | tail -"$n" |
ls -lt ${logpfx}* | tail -"$n" |
16 |
ls -t ${logpfx}* | tail -"$n" | xargs rm -f |
ls -t ${logpfx}* | tail -"$n" | xargs rm -f |
17 |
fi |
fi |
26 |
Building the mitgcm.org front pages: |
Building the mitgcm.org front pages: |
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 >> $logfile 2>&1 |
#----------- |
32 |
|
cd $HOME/testing/front_content && make install >> $logfile 2>&1 |
33 |
retval=$? |
retval=$? |
34 |
if test "x$retval" != x0 ; then |
if test "x$retval" != x0 ; then |
35 |
echo "'make install' return with ERROR $retval" |
echo "'make install' return with ERROR $retval" |