From 4ba1358b2945a5d156ecad4711db9c58890cdeb9 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 27 Apr 2005 09:50:26 +0000 Subject: Change: use SVN rather than RCS to check out code Change: extract version from configure.ac rather than Makefile svn path=/trunk/; revision=4042 --- dist-tools/getstats.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'dist-tools/getstats.py') diff --git a/dist-tools/getstats.py b/dist-tools/getstats.py index f957c7d3..33ddfd7e 100755 --- a/dist-tools/getstats.py +++ b/dist-tools/getstats.py @@ -2,12 +2,19 @@ # # Collect statistics on current release. -import commands, string, ftplib +import commands, os, 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' /dev/null | wc -l" % pid) +os.system("rm -rf /tmp/getstats.%d" % pid) +vers = commands.getoutput("sed -n -e '/AC_INIT/s/AC_INIT(\[.*\],\[\\(.*\\)\])/\\1/p'