]> git.ozlabs.org Git - next-scripts/blobdiff - do_stats
update to_build_host a bit
[next-scripts] / do_stats
index 9ae1c263067dd59a9debf3304b56c276058bd6ff..3a4c4e821ca7143fa122f511a03848c31afd9d04 100755 (executable)
--- a/do_stats
+++ b/do_stats
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 base=$1
 next=$2
 rc=$3
@@ -53,7 +55,7 @@ nnext=$(wc -l <$sd/$next.sha1s)
 ncommsha1=$(wc -l <$sd/common_sha1)
 ncommid=$(wc -l <$sd/common_id)
 ncommsubj=$(wc -l <$sd/common_subj)
-ncomm=$((ncommsha1+ncommid+ncommsibj))
+ncomm=$((ncommsha1+ncommid+ncommsubj))
 pcomm=$((ncomm*100/nrc))
 
 cat <<EOF
@@ -123,6 +125,5 @@ Top ten commiters:
 $(git log --no-walk --stdin --pretty="format:%cE" <$sd/$next.sha1s.3 |
        tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr | head -n 10)
 
-Those commits by me are from the quilt series (mainly Andrew's mmotm
-tree).
+Those commits by me are from Andrew's mmotm tree.
 EOF