aboutsummaryrefslogtreecommitdiffstats
path: root/growthplot
blob: 07fa436f3e150c52a44209d09965c3d277b1778d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/sh
#
# growthplot -- plot the fetchmail population's growth as a function of time
#

# Get data from the NEWS file
timeseries >/tmp/growthplot$$
grep "^[0-9]" /tmp/growthplot$$ >/tmp/growthnumbers$$
grep "^[0-9.]*.[05].0	" /tmp/growthplot$$ >/tmp/growthmajors$$
sed '/^4.2.9/,$d' </tmp/growthnumbers$$ >/tmp/growthannounce$$

cat >/tmp/growthimage$$ <<EOF
set title "Fetchmail project growth history"
set xlabel 'Days since baseline'
set ylabel 'Participants'
set y2label 'Lines of code'
set ytics nomirror
set y2tics
set tics out
set autoscale  y
set y2range [5000:50000]
set key bottom right box
set terminal png color

EOF

# OK, now write the event labels
(
	echo "count=0"
	echo "breakheight=510"
	while read version size friends announce total days date
	do
		if [ "$version" = '%' ]
		then
			legend="$size $friends $announce $total $days $date"
			echo "# Associate $lastday to '$legend'"
			echo "count = count + 1"
			echo "lastday = $lastday - 5"
			echo "lasttotal = $lasttotal"
			echo "endy = breakheight + 50 + count * 50"
			echo set arrow \
				from lastday, endy \
				to lastday, lasttotal+50 \
				head
			echo "set label '$legend' at lastday-10, endy+15"
		else
			lastday=$days
			lasttotal=$total
		fi
	done
) </tmp/growthplot$$ >>/tmp/growthimage$$ 

# OK, now write the major-release labels
(
	while read version size friends announce total days date
	do
	    echo "set arrow from $days, $total - 55 to $days, $total - 15 head"
	    echo "set label '$version' at $days - 5, $total - 65"
	done
) </tmp/growthmajors$$ >>/tmp/growthimage$$ 

cat >>/tmp/growthimage$$ <<EOF
plot [] [0:] '/tmp/growthnumbers$$' using 6:5 \
		title "Both lists" with points 3, \
     '/tmp/growthannounce$$' using 6:4 \
		title "fetchmail-announce" with points 5, \
     '/tmp/growthannounce$$' using 6:3 \
		title "fetchmail-friends" with points 2, \
     '/tmp/growthnumbers$$' using 6:2 axes x1y2 \
		title "Lines of code" with points 7
EOF

gnuplot /tmp/growthimage$$ >growth.png

rm -f /tmp/growth*

# growthplot ends here
Reply-To: esr\@thyrsus.com (Eric S. Raymond) Subject: The $version release of fetchmail is available FCC: ~/postings/outmail The $version release of fetchmail is now available at the usual locations, including <URL:http://$ENV{'WWWVIRTUAL'}/~esr/fetchmail> and <URL:ftp://ftp.ccil.org/pub/esr/fetchmail>. Here are the release notes: EOF # Extract the current notes open(NEWS, "NEWS"); while (<NEWS>) { if (/^fetchmail/) { print REPORT $_; last; } } while (<NEWS>) { if (/^fetchmail/) { last; } print REPORT $_; } $oldrcs = $oldid; $oldrcs =~ tr/-/./; print REPORT <<EOF; By popular demand, diffs from the previous release have been omitted. EOF #Diffs from the previous ($oldrcs) release follow as a MIME attachment. close(NEWS); close(REPORT); if ($rcsid eq '<workfile>') { system("rcsdiff -u -r$oldid RCS/* 2>/dev/null >DIFFS.$$"); } else { system("rcsdiff -u -r$oldid -r$rcsid RCS/* 2>/dev/null >DIFFS.$$"); } rename("PREAMBLE.$$", "RELEASE.NOTES"); system("chown esr RELEASE.NOTES"); chmod(0700, "RELEASE.NOTES"); # If we ever want to go back to enclosing diffs. #system "metasend -b -D 'fetchmail-$rcsid announcement' -m 'text/plain' -e 7bit -f PREAMBLE.$$ -n -D 'diff -u between -$oldrcs $rcsid' -m 'text/plain' -e 7bit -f DIFFS.$$ -o RELEASE_NOTES"; unlink("PREAMBLE.$$"); unlink("DIFFS.$$"); print "Building index page...\n"; system("rm -f index.html; indexgen.sh"); print "Making activity graph..."; growthplot; print "Done\n"; # makerelease ends here