--- mitgcm.org/scripts/daily_tarfile 2010/01/25 22:46:27 1.4 +++ mitgcm.org/scripts/daily_tarfile 2016/12/08 14:35:27 1.6 @@ -1,9 +1,12 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/daily_tarfile,v 1.4 2010/01/25 22:46:27 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/daily_tarfile,v 1.6 2016/12/08 14:35:27 jmc Exp $ # download the source code and make a tar file +#export CVSROOT=/u/gcmpack +#- to allow users to use cvs update/diff on their untar version of the code, +# switch to pserver method (stored everywhere in the tree in dirs CVS/Root) export CVSROOT=':pserver:cvsanon@mitgcm.org:/u/gcmpack' umask 0002 @@ -18,7 +21,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 @@ -34,7 +37,7 @@ #-- test for new checkpoint cd .. version_file="daily_snapshot/MITgcm/doc/tag-index" -backupDir="other_checkpoints" +backupDir="other_checkpoints" if test -f $version_file ; then thischkpt=`awk '/^checkpoint/{print $1; exit}' $version_file` short=`echo $thischkpt | sed 's/checkpoint/c/'` @@ -70,7 +73,7 @@ for xx in $listTar ; do if test $xx != $chkptar.tar.gz ; then if test -f other_checkpoints/$xx ; then - echo "error: $backupDir/$xx already exist" + echo "error: $backupDir/$xx already exist" else echo " mv $xx $backupDir" mv $xx $backupDir