Parent Directory | Revision Log | Revision Graph
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 |