]> git.ozlabs.org Git - next-scripts/commitdiff
update the formatting a little
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 11 Sep 2009 08:15:52 +0000 (18:15 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 11 Sep 2009 08:15:52 +0000 (18:15 +1000)
summary

diff --git a/summary b/summary
index 00da3b8b063107654b5eb3bad1f8f4ef52346c6e..cdb87836ecfe10b7e0f02118433412114df005ea 100755 (executable)
--- a/summary
+++ b/summary
@@ -37,7 +37,7 @@ total_diff=0
 
 plog '%-20s %7s' "Tree" "commits"
 [ "$prev" ] &&
-       plog ' %s' "since next-$prev"
+       plog '\t%s' "change since next-$prev"
 plog '\n\n'
 
 for t in $trees; do
@@ -63,7 +63,7 @@ for t in $trees; do
        [ "$mb" = "$rh" ] && {
                plog '%-20s %7d' $t 0
                [ "$prev" ] && {
-                       plog ' %+7d' $((0 - prev_num))
+                       plog '\t\t%+7d' $((0 - prev_num))
                        total_diff=$((total_diff - prev_num))
                }
                plog '\n'
@@ -75,7 +75,7 @@ for t in $trees; do
        [ -z "$c" ] && {
                plog '%-20s %7d' $t 0
                [ "$prev" ] && {
-                       plog ' %+7d' $((0 - prev_num))
+                       plog '\t\t%+7d' $((0 - prev_num))
                        total_diff=$((total_diff - prev_num))
                }
                plog '\n'
@@ -86,7 +86,7 @@ for t in $trees; do
 
        is=$(patch_and_sha_ids $c)
 #      is=$(join -v 1 <(echo "$is") <(echo "$origin_ids"))
-       is=$(echo "$is" | join -v 1 - "../stats/origin1-$d.ids")
+       is=$(echo "$is" | join -v 1 - "../stats/origin-$d.ids")
        is=$(join -v 1 <(echo "$is") <(echo "$seen_ids"))
        c1=$(echo "$is" | cut -d' ' -f2)
        [ "$is" ] &&
@@ -98,7 +98,7 @@ for t in $trees; do
        num=$(echo "$c1" | wc -w)
        plog '%-20s %7d' $t $num
        [ "$prev" ] && {
-               plog ' %+7d' $((num - prev_num))
+               plog '\t\t%+7d' $((num - prev_num))
                total_diff=$((total_diff + num - prev_num))
        }
        plog '\n'
@@ -109,7 +109,7 @@ done
 log
 plog '%-20s %7d' 'Total' $total_commits
 [ "$prev" ] &&
-       plog ' %+7d' $total_diff
+       plog '\t\t%+7d' $total_diff
 plog '\n'
 
 log