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