summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--src/lib/Server/Reports/reports/templates/base.html2
-rwxr-xr-xtools/export.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/reports/templates/base.html b/src/lib/Server/Reports/reports/templates/base.html
index 9bd9da218..a64f1c76a 100644
--- a/src/lib/Server/Reports/reports/templates/base.html
+++ b/src/lib/Server/Reports/reports/templates/base.html
@@ -87,7 +87,7 @@
<div style='clear:both'></div>
</div><!-- document -->
<div id="footer">
- <span>Bcfg2 Version 1.1.0</span>
+ <span>Bcfg2 Version 1.2.0pre1</span>
</div>
<div id="calendar_div" style='position:absolute; visibility:hidden; background-color:white; layer-background-color:white;'></div>
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