fix bug in set_version and update version hash

This commit is contained in:
arvidn 2015-11-11 01:25:30 -05:00
parent 4c0b00c390
commit d0dcf82612
2 changed files with 3 additions and 2 deletions

View File

@ -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 "1.1.0.0"
#define LIBTORRENT_REVISION "a10289a"
#define LIBTORRENT_REVISION "4c0b00c"
namespace libtorrent {
// returns the libtorrent version as string form in this format:

View File

@ -29,7 +29,7 @@ def substitute_file(name):
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])
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'):
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'):