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

Annotation of /mitgcm.org/scripts/daily_snapshot

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


Revision 1.1 - (hide annotations) (download)
Sat Feb 16 18:40:03 2008 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
add short scripts used on forge (from crontab)

1 jmc 1.1 #! /usr/bin/env bash
2    
3     # $Header: $
4    
5     umask 0002
6    
7     echo 'Changing directory to /u/httpd/html/download/daily_snapshot'
8     cd /u/httpd/html/download/daily_snapshot
9     test -e MITgcm && rm -rf MITgcm
10    
11     echo 'Checking out MITgcm...'
12     export CVSROOT=/u/gcmpack && cvs co -P MITgcm > /dev/null 2>&1
13     #chgrp gcmpack MITgcm
14     #chmod 775 MITgcm
15    
16     echo 'Creating the tar file...'
17     rm -rf MITgcm_ss_*
18     tname='MITgcm_ss_'`date +%Y%m%d`'.tar.gz'
19     tar -czf $tname ./MITgcm
20     #chmod 664 $tname
21     ls -l $tname
22    
23     echo 'Done!'
24    

  ViewVC Help
Powered by ViewVC 1.1.22