summaryrefslogtreecommitdiffstats
path: root/tools/export.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-05-31 12:40:50 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-05-31 12:41:38 -0500
commit65637ce2d9177d37445588707db86893f8b4100e (patch)
tree98e0b75e06fe686b49eef23b0520bfacd61b8a90 /tools/export.py
parent1c10760466c83131a60b36a284c38c44ff4b73b8 (diff)
downloadbcfg2-65637ce2d9177d37445588707db86893f8b4100e.tar.gz
bcfg2-65637ce2d9177d37445588707db86893f8b4100e.tar.bz2
bcfg2-65637ce2d9177d37445588707db86893f8b4100e.zip
export.py: Update documentation version numbers
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'tools/export.py')
-rwxr-xr-xtools/export.py7
1 files changed, 7 insertions, 0 deletions
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, ' <span>Bcfg2 Version %s</span>\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