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

Diff of /mitgcm.org/scripts/daily_snapshot

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

revision 1.1 by jmc, Sat Feb 16 18:40:03 2008 UTC revision 1.3 by jmc, Wed Mar 5 00:56:11 2008 UTC
# Line 2  Line 2 
2    
3  # $Header$  # $Header$
4    
5    # download or update several dir. which are used for:
6    # - front_page building
7    # - processing testing emails (-> testing page, part of front_page building)
8    # - making a daily tar file of source code
9    
10    export CVSROOT=/u/gcmpack
11    
12    #- update scripts with explicit path:
13    echo -n 'Update dir:'
14    cd /u/u2/jmc/testing/scripts && pwd && cvs -q update -P -d
15    
16    #-- update tools/mpack-1.6 dir :
17    tmpFil=/tmp/TTT.daily_snapshot.$$
18    exe=munpack
19    cd /u/u2/jmc/testing/tools_mpack
20    echo -n 'Update dir:' ; pwd
21    chg=`cvs -q update -P -d | tee $tmpFil | sed '/^?/d' | wc -l`
22    #echo "chg ='$chg'"
23    cat $tmpFil ; rm -f $tmpFil
24    if test "x$chg" != x0 ; then
25      if test -f $exe ; then echo " removing: $exe force re-build." ; fi
26      rm -f $exe
27    fi
28    
29    #- update front-page building dir:
30    echo -n 'Update dir:'
31    cd /u/u2/jmc/testing/front_content && pwd && cvs -q update -P -d
32    
33    #-- clean-up old log files:
34    cd /u/u2/jmc/testing/logs
35    n=$(( `ls bld_manual.* | wc -l` - 10 ))
36    if test $n -gt 0 ; then
37      echo -n ' remove files: '
38        ls -lt bld_manual.* | tail -"$n"
39        ls -t  bld_manual.* | tail -"$n" | xargs rm -f
40    fi
41    
42    
43  umask 0002  umask 0002
44    
45  echo 'Changing directory to /u/httpd/html/download/daily_snapshot'  echo 'Changing directory to /u/httpd/html/download/daily_snapshot'
# Line 9  cd /u/httpd/html/download/daily_snapshot Line 47  cd /u/httpd/html/download/daily_snapshot
47  test -e MITgcm  &&  rm -rf MITgcm  test -e MITgcm  &&  rm -rf MITgcm
48    
49  echo 'Checking out MITgcm...'  echo 'Checking out MITgcm...'
50  export CVSROOT=/u/gcmpack  &&  cvs co -P MITgcm > /dev/null 2>&1  cvs co -P MITgcm > /dev/null 2>&1
51  #chgrp gcmpack MITgcm  #chgrp gcmpack MITgcm
52  #chmod 775 MITgcm  #chmod 775 MITgcm
53    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22