Permalink
Browse files

Added code to docs config to add revision number.

  • Loading branch information...
1 parent b1333c9 commit 3b6555b6c3b796a942afddfef40f6b1fa2efa427 paltman committed Dec 1, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 docs/source/conf-orig.py
View
@@ -48,6 +48,13 @@
version = '1.8'
# The full version, including alpha/beta/rc tags.
release = "HEAD" #'1.8d'
+try:
+ import subprocess
+ p = subprocess.Popen(["svn info ../boto | grep Revision | awk '{print $2}'"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
+ release = 'r%s' % p.stdout.read().strip()
+except:
+ pass
+
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

0 comments on commit 3b6555b

Please sign in to comment.