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

Annotation of /mitgcm.org/scripts/daily_tarfile

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


Revision 1.1 - (hide annotations) (download)
Sat Sep 6 19:48:45 2008 UTC (15 years, 5 months ago) by jmc
Branch: MAIN
split daily_snapshot in 2: daily_update & daily_tarfile

1 jmc 1.1 #! /usr/bin/env bash
2    
3     # $Header: /u/gcmpack/mitgcm.org/scripts/daily_snapshot,v 1.3 2008/03/05 00:56:11 jmc Exp $
4    
5     # download the source code and make a tar file
6    
7     export CVSROOT=/u/gcmpack
8    
9     umask 0002
10    
11     echo 'Changing dir. to /u/httpd/html/download/daily_snapshot'
12     cd /u/httpd/html/download/daily_snapshot
13     test -e MITgcm && rm -rf MITgcm
14    
15     echo 'Checking out MITgcm...'
16     cvs co -P MITgcm > /dev/null 2>&1
17     #chgrp gcmpack MITgcm
18     #chmod 775 MITgcm
19    
20     echo 'Creating the tar file...'
21     rm -rf MITgcm_ss_*
22     tname='MITgcm_ss_'`date +%Y%m%d`'.tar.gz'
23     tar -czf $tname ./MITgcm
24     #chmod 664 $tname
25     ls -l $tname
26    
27     echo 'Done!'
28    

  ViewVC Help
Powered by ViewVC 1.1.22