remove MAPNIK_VERSION_IS_RELEASE logic from scons - refs #3123

This commit is contained in:
Dane Springmeyer 2015-10-12 10:41:11 -07:00
parent 67718ed8e1
commit c9a4d3d8ef

View file

@ -1069,7 +1069,6 @@ conf_tests = { 'prioritize_paths' : prioritize_paths,
def GetMapnikLibVersion():
ver = []
is_pre = False
for line in open('include/mapnik/version.hpp').readlines():
if line.startswith('#define MAPNIK_MAJOR_VERSION'):
ver.append(line.split(' ')[2].strip())
@ -1077,12 +1076,7 @@ def GetMapnikLibVersion():
ver.append(line.split(' ')[2].strip())
if line.startswith('#define MAPNIK_PATCH_VERSION'):
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)
if is_pre:
version_string += '-pre'
return version_string
if not preconfigured: