forked from premiere/premiere-libtorrent
fix bug in set_version and update version hash
This commit is contained in:
parent
4c0b00c390
commit
d0dcf82612
|
@ -44,7 +44,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#define LIBTORRENT_VERSION_NUM ((LIBTORRENT_VERSION_MAJOR * 10000) + (LIBTORRENT_VERSION_MINOR * 100) + LIBTORRENT_VERSION_TINY)
|
#define LIBTORRENT_VERSION_NUM ((LIBTORRENT_VERSION_MAJOR * 10000) + (LIBTORRENT_VERSION_MINOR * 100) + LIBTORRENT_VERSION_TINY)
|
||||||
|
|
||||||
#define LIBTORRENT_VERSION "1.1.0.0"
|
#define LIBTORRENT_VERSION "1.1.0.0"
|
||||||
#define LIBTORRENT_REVISION "a10289a"
|
#define LIBTORRENT_REVISION "4c0b00c"
|
||||||
|
|
||||||
namespace libtorrent {
|
namespace libtorrent {
|
||||||
|
|
||||||
// returns the libtorrent version as string form in this format:
|
// returns the libtorrent version as string form in this format:
|
||||||
|
|
|
@ -29,7 +29,7 @@ def substitute_file(name):
|
||||||
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])
|
||||||
elif '#define LIBTORRENT_REVISION ' in l and name.endswith('.hpp'):
|
elif '#define LIBTORRENT_REVISION ' in l and name.endswith('.hpp'):
|
||||||
l = '#define LIBTORRENT_REVISION "%s"' % revision
|
l = '#define LIBTORRENT_REVISION "%s"\n' % revision
|
||||||
elif 'AC_INIT([libtorrent-rasterbar]' in l and name.endswith('.ac'):
|
elif 'AC_INIT([libtorrent-rasterbar]' in l and name.endswith('.ac'):
|
||||||
l = 'AC_INIT([libtorrent-rasterbar],[%d.%d.%d],[arvid@libtorrent.org],\n' % (version[0], version[1], version[2])
|
l = 'AC_INIT([libtorrent-rasterbar],[%d.%d.%d],[arvid@libtorrent.org],\n' % (version[0], version[1], version[2])
|
||||||
elif 'set (VERSION ' in l and name.endswith('.txt'):
|
elif 'set (VERSION ' in l and name.endswith('.txt'):
|
||||||
|
|
Loading…
Reference in New Issue