From 921627010b09fe95a24a19369b520e9cd6b6aafc Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 18 Aug 2013 01:16:13 +0000 Subject: [PATCH] make update_version.py also update auto generated documentation --- set_version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/set_version.py b/set_version.py index d3cd73ff2..bb06c676a 100644 --- a/set_version.py +++ b/set_version.py @@ -21,7 +21,7 @@ def substitute_file(name): l = 'AC_INIT([libtorrent-rasterbar],[%d.%d.%d],[arvid@rasterbar.com],\n' % (version[0], version[1], version[2]) elif 'set (VERSION ' in l and name.endswith('.txt'): l = 'set (VERSION "%d.%d.%d")\n' % (version[0], version[1], version[2]) - elif ':Version: ' in l and name.endswith('.rst'): + elif ':Version: ' in l and (name.endswith('.rst') or name.endswith('.py')): l = ':Version: %d.%d.%d\n' % (version[0], version[1], version[2]) elif 'VERSION = ' in l and name.endswith('Jamfile'): l = 'VERSION = %d.%d.%d ;\n' % (version[0], version[1], version[2]) @@ -35,6 +35,7 @@ def substitute_file(name): substitute_file('include/libtorrent/version.hpp') substitute_file('CMakeLists.txt') substitute_file('configure.ac') +substitute_file('docs/gen_reference_doc.py') for i in glob.glob('docs/*.rst'): substitute_file(i) substitute_file('Jamfile')