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

Contents of /mitgcm.org/scripts/daily_snapshot

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


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

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!'

  ViewVC Help
Powered by ViewVC 1.1.22