fixed bug in set_version.py script

This commit is contained in:
Arvid Norberg 2009-09-18 17:43:50 +00:00
parent 4fde3de683
commit 9802ef9eb9
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def substitute_file(name):
l = '#define LIBTORRENT_VERSION_MAJOR %d\n' % version[0]
elif '#define LIBTORRENT_VERSION_MINOR' in l and name.endswith('.hpp'):
l = '#define LIBTORRENT_VERSION_MINOR %d\n' % version[1]
if '#define LIBTORRENT_VERSION_TINY' in l and name.endswith('.hpp'):
elif '#define LIBTORRENT_VERSION_TINY' in l and name.endswith('.hpp'):
l = '#define LIBTORRENT_VERSION_TINY %d\n' % version[2]
elif '#define LIBTORRENT_VERSION' in l and name.endswith('.hpp'):
l = '#define LIBTORRENT_VERSION "%d.%d.%d.%d"\n' % (version[0], version[1], version[2], version[3])