From d3ecf26dda52866dbfc3ca050619da308a4a80cb Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Mon, 24 Jan 2011 14:04:42 -0600 Subject: export: Update version number for reports Signed-off-by: Sol Jerome --- tools/export.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/export.py') diff --git a/tools/export.py b/tools/export.py index c64ff90a2..83f13923b 100755 --- a/tools/export.py +++ b/tools/export.py @@ -59,6 +59,11 @@ for line in fileinput.input('solaris/Makefile', inplace=1): if line.startswith('VERS='): line = line.replace(line, 'VERS=%s-1\n' % version) sys.stdout.write(line) +# update the version in reports +for line in fileinput.input('src/lib/Server/Reports/reports/templates/base.html', inplace=1): + if 'Bcfg2 Version' in line: + line = line.replace(line, ' Bcfg2 Version %s\n' % version) + sys.stdout.write(line) # tag the release #FIXME: do this using python-dulwich -- cgit v1.2.3-1-g7c22