blob: 57d2f233098c21f4e9eec09e4fb95fdd01e8baa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/python
#
# Collect statistics on current release.
import commands, string, ftplib
# Get version and date
date = commands.getoutput("date")
ln = commands.getoutput("co -p RCS/*.[chly],v 2>/dev/null | wc -l")
vers = commands.getoutput("sed -n -e '/VERSION/s/VERSION *= *\\(.*\\)/\\1/p' <Makefile")
print "fetchmail-" + vers + " (" + date + "), " + string.strip(ln) + " lines:"
# Use local listsize command to grab list statistics
friends = commands.getoutput("listsize friends").strip()
announce = commands.getoutput("listsize announce").strip()
print "There are %s people on fetchmail-friends and %s on fetchmail-announce."% (friends, announce)
# getstats.py
|