summaryrefslogtreecommitdiffstats
path: root/tools/export.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-01-24 14:04:42 -0600
committerSol Jerome <sol.jerome@gmail.com>2011-01-24 14:04:42 -0600
commitd3ecf26dda52866dbfc3ca050619da308a4a80cb (patch)
tree32017f2c67fed285e26be1c5e34db07b7c48fa31 /tools/export.py
parent055038688fdc790cf6806497b6fb85567c07c754 (diff)
downloadbcfg2-d3ecf26dda52866dbfc3ca050619da308a4a80cb.tar.gz
bcfg2-d3ecf26dda52866dbfc3ca050619da308a4a80cb.tar.bz2
bcfg2-d3ecf26dda52866dbfc3ca050619da308a4a80cb.zip
export: Update version number for reports
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'tools/export.py')
-rwxr-xr-xtools/export.py5
1 files changed, 5 insertions, 0 deletions
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, ' <span>Bcfg2 Version %s</span>\n' % version)
+ sys.stdout.write(line)
# tag the release
#FIXME: do this using python-dulwich