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

Diff of /mitgcm.org/scripts/process_emails

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

revision 1.3 by jmc, Wed Feb 27 01:42:56 2008 UTC revision 1.6 by jmc, Thu Mar 10 16:53:43 2011 UTC
# Line 9  Line 9 
9  #  #
10  #EOF  #EOF
11    
12  MPACKDIR=/u/u2/jmc/testing/tools_mpack  #-- build munpack if needed:
13  exe=munpack  unpck=/u/u2/jmc/testing/tools_mpack/munpack
14  unpck=$MPACKDIR/$exe  if test ! -x $unpck ; then
15  tmpFil=/tmp/TTT.process_emails.$$   MPACKDIR=`dirname $unpck`
16     cd $MPACKDIR
17     ./configure && make
18    fi
19    
20  #-- update tools/mpack-1.6 dir and build munpack :  #-- create a daily log file (if not already there)
21  cd $MPACKDIR  cd /u/u2/jmc/testing/logs
22  bld=`cvs -q update -P -d | tee $tmpFil | sed '/^?/d' | wc -l`  logpfx="prc_emails_" ; sfx=`date +%m%d`
23  #echo "bld ='$bld'"  logfile="../logs/${logpfx}$sfx"
24  cat $tmpFil ; /bin/rm -f $tmpFil  if test -e $logfile ; then :
25    else
26  if test ! -x $exe ; then bld=1 ; fi  #-- clean-up old log files:
27  if test "x$bld" != x0 ; then ./configure && make ; fi    echo -n '-- in dir: ' ; pwd
28      n=$(( `ls ${logpfx}* | wc -l` - 10 ))
29      if test $n -gt 0 ; then
30      echo -n ' remove files: '
31        ls -lt ${logpfx}* | tail -"$n"
32        ls -t  ${logpfx}* | tail -"$n" | xargs rm -f
33      fi
34      echo ' create new log file:' $logfile
35      touch $logfile
36    fi
37    
38  #-- parse emails :  #-- parse emails :
39  cd /u/u2/jmc/testing/front_content && ./parse_emails -u $unpck -v -a jmc@ocean.mit.edu  cd /u/u2/jmc/testing/front_content && ./parse_emails -u $unpck -a jmc@ocean.mit.edu >> $logfile 2>&1
40    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.22