--- mitgcm.org/scripts/daily_tarfile 2009/07/10 00:27:16 1.2 +++ mitgcm.org/scripts/daily_tarfile 2011/04/22 00:01:01 1.5 @@ -1,10 +1,10 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/daily_tarfile,v 1.2 2009/07/10 00:27:16 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/daily_tarfile,v 1.5 2011/04/22 00:01:01 jmc Exp $ # download the source code and make a tar file -export CVSROOT=/u/gcmpack +export CVSROOT=':pserver:cvsanon@mitgcm.org:/u/gcmpack' umask 0002 @@ -18,7 +18,7 @@ test -e MITgcm && rm -rf MITgcm echo 'Checking out MITgcm...' -cvs co -P MITgcm > /dev/null 2>&1 +cvs co -P MITgcm > /dev/null #chgrp gcmpack MITgcm #chmod 775 MITgcm @@ -36,7 +36,7 @@ version_file="daily_snapshot/MITgcm/doc/tag-index" backupDir="other_checkpoints" if test -f $version_file ; then - thischkpt=`grep '^checkpoint' $version_file | head -1` + thischkpt=`awk '/^checkpoint/{print $1; exit}' $version_file` short=`echo $thischkpt | sed 's/checkpoint/c/'` chkptar="MITgcm_$short" if test -f $chkptar.tar.gz ; then