From afdc7fa4d45d65a1d6192405cae3826d80db4f72 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Fri, 15 Jan 1999 04:22:16 +0000 Subject: VERSION is no longer set in configure because it's too hard to propagate version string changes to the public (you have to autoreconf, then reconfigure and reinstall). Now, VERSION is set directory in Defaults.py.in and the Release.py script updates that file directly. Now we just need to run ./config.status and do a re-install. I hope this will make things easier. I'm also bumping the version to 1.0b8, so I can do a release tomorrow. --- admin/bin/Release.py | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'admin/bin/Release.py') diff --git a/admin/bin/Release.py b/admin/bin/Release.py index 1ffa9a106..19974e515 100755 --- a/admin/bin/Release.py +++ b/admin/bin/Release.py @@ -36,6 +36,7 @@ Where: import sys import os import string +import re import time import tempfile import getopt @@ -117,23 +118,26 @@ def do_bump(newvers): fp.write(text) fp.close() # hack the configure.in file - print 'configure.in...', - fp_in = open('configure.in') - fp_out = open('configure.in.new', 'w') + print 'Defaults.py.in...', + fp_in = open('Mailman/Defaults.py.in') + fp_out = open('Mailman/Defaults.py.in.new', 'w') matched = 0 + cre = re.compile(r'^VERSION(?P[ \t]*)=') while 1: line = fp_in.readline() if not line: + if not matched: + print 'Error! VERSION line not found' break - if not matched and line[:8] == 'VERSION=': - fp_out.write('VERSION=' + newvers + '\n') - matched = 1 - else: + mo = cre.search(line) + if matched or not mo: fp_out.write(line) + else: + fp_out.write('VERSION%s= "%s"\n' % (mo.group('ws'), newvers)) + matched = 1 fp_in.close() fp_out.close() - os.rename('configure.in.new', 'configure.in') - os.system('autoreconf') + os.rename('Mailman/Defaults.py.in.new', 'Mailman/Defaults.py.in') # update the TODO file print 'TODO...' os.system('admin/bin/mm2do') -- cgit v1.2.3-70-g09d2