1 |
#! /usr/bin/env bash |
2 |
|
3 |
# $Header: /u/gcmpack/mitgcm.org/scripts/process_emails,v 1.2 2008/02/26 21:36:23 jmc Exp $ |
4 |
|
5 |
#cat <<EOF |
6 |
#========================================================== |
7 |
#Parsing MITgcm testing emails : |
8 |
#========================================================== |
9 |
# |
10 |
#EOF |
11 |
|
12 |
MPACKDIR=/u/u2/jmc/testing/tools_mpack |
13 |
exe=munpack |
14 |
unpck=$MPACKDIR/$exe |
15 |
tmpFil=/tmp/TTT.process_emails.$$ |
16 |
|
17 |
#-- update tools/mpack-1.6 dir and build munpack : |
18 |
cd $MPACKDIR |
19 |
bld=`cvs -q update -P -d | tee $tmpFil | sed '/^?/d' | wc -l` |
20 |
#echo "bld ='$bld'" |
21 |
cat $tmpFil ; /bin/rm -f $tmpFil |
22 |
|
23 |
if test ! -x $exe ; then bld=1 ; fi |
24 |
if test "x$bld" != x0 ; then ./configure && make ; fi |
25 |
|
26 |
#-- parse emails : |
27 |
cd /u/u2/jmc/testing/front_content && ./parse_emails -u $unpck -v -a jmc@ocean.mit.edu |