remove MAPNIK_VERSION_IS_RELEASE logic from scons - refs #3123
This commit is contained in:
parent
67718ed8e1
commit
c9a4d3d8ef
1 changed files with 0 additions and 6 deletions
|
@ -1069,7 +1069,6 @@ conf_tests = { 'prioritize_paths' : prioritize_paths,
|
||||||
|
|
||||||
def GetMapnikLibVersion():
|
def GetMapnikLibVersion():
|
||||||
ver = []
|
ver = []
|
||||||
is_pre = False
|
|
||||||
for line in open('include/mapnik/version.hpp').readlines():
|
for line in open('include/mapnik/version.hpp').readlines():
|
||||||
if line.startswith('#define MAPNIK_MAJOR_VERSION'):
|
if line.startswith('#define MAPNIK_MAJOR_VERSION'):
|
||||||
ver.append(line.split(' ')[2].strip())
|
ver.append(line.split(' ')[2].strip())
|
||||||
|
@ -1077,12 +1076,7 @@ def GetMapnikLibVersion():
|
||||||
ver.append(line.split(' ')[2].strip())
|
ver.append(line.split(' ')[2].strip())
|
||||||
if line.startswith('#define MAPNIK_PATCH_VERSION'):
|
if line.startswith('#define MAPNIK_PATCH_VERSION'):
|
||||||
ver.append(line.split(' ')[2].strip())
|
ver.append(line.split(' ')[2].strip())
|
||||||
if line.startswith('#define MAPNIK_VERSION_IS_RELEASE'):
|
|
||||||
if line.split(' ')[2].strip() == "0":
|
|
||||||
is_pre = True
|
|
||||||
version_string = ".".join(ver)
|
version_string = ".".join(ver)
|
||||||
if is_pre:
|
|
||||||
version_string += '-pre'
|
|
||||||
return version_string
|
return version_string
|
||||||
|
|
||||||
if not preconfigured:
|
if not preconfigured:
|
||||||
|
|
Loading…
Reference in a new issue