From 15ee1a9910d267982c6c6bd0667a3e20eb6a3551 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 25 Feb 2001 17:42:56 +0000 Subject: Don't generate spurious trailing whitespace on labels. svn path=/trunk/; revision=3145 --- growthplot | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/growthplot b/growthplot index 484072a4..a3deac79 100755 --- a/growthplot +++ b/growthplot @@ -28,11 +28,10 @@ EOF ( echo "count=0" echo "breakheight=510" - while read version size friends announce total days date + while read version legend do if [ "$version" = '%' ] then - legend="$size $friends $announce $total $days $date" echo "# Associate $lastday to '$legend'" echo "count = count + 1" echo "lastday = $lastday - 5" @@ -47,6 +46,13 @@ EOF echo "if (endy > lasttotal) set label '$legend' at lastday-10, endy+15" echo "if (endy <= lasttotal) set label '$legend' at lastday-475, endy-15" else + set -- $legend + size=$1 + friends=$2 + announce=$3 + total=$4 + days=$5 + date=$6 lastday=$days lasttotal=$total fi -- cgit v1.2.3