Parent Directory
|
Revision Log
|
Revision Graph
|
Patch
--- mitgcm.org/front_content/make_summary 2003/12/10 03:12:11 1.6
+++ mitgcm.org/front_content/make_summary 2003/12/10 20:37:24 1.7
@@ -1,6 +1,6 @@
#! /usr/bin/env bash
-# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.6 2003/12/10 03:12:11 edhill Exp $
+# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.7 2003/12/10 20:37:24 edhill Exp $
#
# The purpose of this script is to create HTML summaries of the
# directories produced by the "parse_emails" script.
@@ -296,8 +296,14 @@
grep '^[YN] [YN] [YN] [YN] ' $dir/summary.txt > ./all_tests 2>/dev/null
t_tot=`cat ./all_tests | wc -l | sed -e 's| ||g'`
grep '^Y Y Y Y ' ./all_tests > ./all_ran 2>/dev/null
- t_advect=`grep advect_ ./all_ran 2>/dev/null | wc -l | sed -e 's| ||g'`
- t_advect=${t_advect/ /}
+ grep advect_ ./all_ran 2>/dev/null > ./all_ran_advect
+ t_advect=`cat ./all_ran_advect | wc -l | sed -e 's| ||g'`
+ digits=`cat ./all_ran_advect | awk '{print $9}'`
+ t_advect_pass=0
+ for k in $digits ; do
+ test "x$k" = x-- && k=0
+ test $k -ge 9 && t_advect_pass=$(( $t_advect_pass + 1 ))
+ done
grep -v advect ./all_ran 2>/dev/null > ./all_ran_noadvect
digits=`cat ./all_ran_noadvect | awk '{print $5}'`
t_sum=0
@@ -305,9 +311,9 @@
test "x$k" = x-- && k=0
test $k -ge 9 && t_sum=$(( $t_sum + 1 ))
done
- t_pass=$(( $t_sum + $t_advect ))
+ t_pass=$(( $t_sum + $t_advect_pass ))
fi
- rm -f ./all_tests ./all_ran ./all_ran_noadvect
+ rm -f ./all_tests ./all_ran ./all_ran_advect ./all_ran_noadvect
# echo "${dir##*/} : $t_pass out of $t_tot"
tokens=`echo $i | sed -e 's|_| |g'`
| ViewVC Help | |
| Powered by ViewVC 1.1.22 |