forked from premiere/premiere-libtorrent
more fixes to set_version.py due to the new configure script
This commit is contained in:
parent
9802ef9eb9
commit
59e37cf109
|
@ -5,7 +5,8 @@
|
|||
|
||||
AC_PREREQ([2.63])
|
||||
|
||||
AC_INIT([libtorrent-rasterbar],[0.15.0],[arvid@cs.umu.se],[libtorrent-rasterbar],[http://www.libtorrent.org])
|
||||
AC_INIT([libtorrent-rasterbar],[0.15.0],[arvid@cs.umu.se],
|
||||
[libtorrent-rasterbar],[http://www.libtorrent.org])
|
||||
AC_CONFIG_SRCDIR([src/torrent.cpp])
|
||||
AC_CONFIG_AUX_DIR([build-aux])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
|
|
@ -15,9 +15,9 @@ def substitute_file(name):
|
|||
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])
|
||||
elif 'AC_INIT([libtorrent-rasterbar]' in l and name.endswith('.in'):
|
||||
l = 'AC_INIT([libtorrent-rasterbar], [%d.%d.%d], [arvid@cs.umu.se])\n' % (version[0], version[1], version[2])
|
||||
elif 'set (VERSION ' in l and name.endswith('.in'):
|
||||
elif 'AC_INIT([libtorrent-rasterbar]' in l and name.endswith('.ac'):
|
||||
l = 'AC_INIT([libtorrent-rasterbar],[%d.%d.%d],[arvid@cs.umu.se],\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'):
|
||||
l = ':Version: %d.%d.%d\n' % (version[0], version[1], version[2])
|
||||
|
@ -32,7 +32,7 @@ def substitute_file(name):
|
|||
|
||||
substitute_file('include/libtorrent/version.hpp')
|
||||
substitute_file('CMakeLists.txt')
|
||||
substitute_file('configure.in')
|
||||
substitute_file('configure.ac')
|
||||
substitute_file('docs/manual.rst')
|
||||
substitute_file('docs/building.rst')
|
||||
substitute_file('docs/features.rst')
|
||||
|
|
Loading…
Reference in New Issue