fixed bug in set_version.py script
This commit is contained in:
parent
4fde3de683
commit
9802ef9eb9
|
@ -11,7 +11,7 @@ def substitute_file(name):
|
||||||
l = '#define LIBTORRENT_VERSION_MAJOR %d\n' % version[0]
|
l = '#define LIBTORRENT_VERSION_MAJOR %d\n' % version[0]
|
||||||
elif '#define LIBTORRENT_VERSION_MINOR' in l and name.endswith('.hpp'):
|
elif '#define LIBTORRENT_VERSION_MINOR' in l and name.endswith('.hpp'):
|
||||||
l = '#define LIBTORRENT_VERSION_MINOR %d\n' % version[1]
|
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]
|
l = '#define LIBTORRENT_VERSION_TINY %d\n' % version[2]
|
||||||
elif '#define LIBTORRENT_VERSION' in l and name.endswith('.hpp'):
|
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])
|
l = '#define LIBTORRENT_VERSION "%d.%d.%d.%d"\n' % (version[0], version[1], version[2], version[3])
|
||||||
|
|
Loading…
Reference in New Issue