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

Diff of /mitgcm.org/scripts/daily_tarfile

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

revision 1.2 by jmc, Fri Jul 10 00:27:16 2009 UTC revision 1.5 by jmc, Fri Apr 22 00:01:01 2011 UTC
# Line 4  Line 4 
4    
5  # download the source code and make a tar file  # download the source code and make a tar file
6    
7  export CVSROOT=/u/gcmpack  export CVSROOT=':pserver:cvsanon@mitgcm.org:/u/gcmpack'
8    
9  umask 0002  umask 0002
10    
# Line 18  fi Line 18  fi
18  test -e MITgcm  &&  rm -rf MITgcm  test -e MITgcm  &&  rm -rf MITgcm
19    
20  echo 'Checking out MITgcm...'  echo 'Checking out MITgcm...'
21  cvs co -P MITgcm > /dev/null 2>&1  cvs co -P MITgcm > /dev/null
22  #chgrp gcmpack MITgcm  #chgrp gcmpack MITgcm
23  #chmod 775 MITgcm  #chmod 775 MITgcm
24    
# Line 36  cd .. Line 36  cd ..
36  version_file="daily_snapshot/MITgcm/doc/tag-index"  version_file="daily_snapshot/MITgcm/doc/tag-index"
37  backupDir="other_checkpoints"  backupDir="other_checkpoints"
38  if test -f $version_file ; then  if test -f $version_file ; then
39      thischkpt=`grep '^checkpoint' $version_file | head -1`      thischkpt=`awk '/^checkpoint/{print $1; exit}' $version_file`
40      short=`echo $thischkpt | sed 's/checkpoint/c/'`      short=`echo $thischkpt | sed 's/checkpoint/c/'`
41      chkptar="MITgcm_$short"      chkptar="MITgcm_$short"
42      if test -f $chkptar.tar.gz ; then      if test -f $chkptar.tar.gz ; then

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

  ViewVC Help
Powered by ViewVC 1.1.22