From 65637ce2d9177d37445588707db86893f8b4100e Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Tue, 31 May 2011 12:40:50 -0500 Subject: export.py: Update documentation version numbers Signed-off-by: Sol Jerome --- tools/export.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools') diff --git a/tools/export.py b/tools/export.py index d637c166c..43ec03a23 100755 --- a/tools/export.py +++ b/tools/export.py @@ -85,6 +85,13 @@ for line in fileinput.input('src/lib/Server/Reports/reports/templates/base.html' if 'Bcfg2 Version' in line: line = line.replace(line, ' Bcfg2 Version %s\n' % version) sys.stdout.write(line) +# update the version in the docs +for line in fileinput.input('doc/conf.py', inplace=1): + if line.startswith('version ='): + line = line.replace(line, 'version = \'%s\'\n' % majorver[0:3]) + if line.startswith('release ='): + line = line.replace(line, 'release = \'%s\'\n' % (majorver + minorver)) + sys.stdout.write(line) # tag the release #FIXME: do this using python-dulwich -- cgit v1.2.3-1-g7c22