aboutsummaryrefslogtreecommitdiffstats
path: root/growthplot
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-25 17:42:56 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-25 17:42:56 +0000
commit15ee1a9910d267982c6c6bd0667a3e20eb6a3551 (patch)
tree98829fd0753756bab0d5832ef2e85dd4ea11b0b1 /growthplot
parent61d92b0101aceb8eb8fa71aa62465b56bd90e30a (diff)
downloadfetchmail-15ee1a9910d267982c6c6bd0667a3e20eb6a3551.tar.gz
fetchmail-15ee1a9910d267982c6c6bd0667a3e20eb6a3551.tar.bz2
fetchmail-15ee1a9910d267982c6c6bd0667a3e20eb6a3551.zip
Don't generate spurious trailing whitespace on labels.
svn path=/trunk/; revision=3145
Diffstat (limited to 'growthplot')
-rwxr-xr-xgrowthplot10
1 files 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