From 2cc6b4f87dffa3393895b19b7ccf7f024218d5bb Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 7 Feb 2001 15:33:25 +0000 Subject: Initial revision svn path=/trunk/; revision=3031 --- getstats.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 getstats.py (limited to 'getstats.py') diff --git a/getstats.py b/getstats.py new file mode 100755 index 00000000..563b39e0 --- /dev/null +++ b/getstats.py @@ -0,0 +1,26 @@ +#!/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'