diff options
author | Graham Wilson <graham@mknod.org> | 2004-08-30 01:34:48 +0000 |
---|---|---|
committer | Graham Wilson <graham@mknod.org> | 2004-08-30 01:34:48 +0000 |
commit | c3a80da98846c21a5d3f32a91669d78774a0aa6a (patch) | |
tree | 72bee6836c468c8527560821cd65618f2c7b115d /dist-tools/getstats.py | |
parent | fd2543489b53fe34a18b7204d6803bf527c0d198 (diff) | |
download | fetchmail-c3a80da98846c21a5d3f32a91669d78774a0aa6a.tar.gz fetchmail-c3a80da98846c21a5d3f32a91669d78774a0aa6a.tar.bz2 fetchmail-c3a80da98846c21a5d3f32a91669d78774a0aa6a.zip |
Move a handful of scripts (used for releases, testing, etc.) to dist-tools, so that they are not released in the tarball.
svn path=/trunk/; revision=3934
Diffstat (limited to 'dist-tools/getstats.py')
-rwxr-xr-x | dist-tools/getstats.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dist-tools/getstats.py b/dist-tools/getstats.py new file mode 100755 index 00000000..f957c7d3 --- /dev/null +++ b/dist-tools/getstats.py @@ -0,0 +1,18 @@ +#!/usr/bin/env 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 |