scons: wow, libtool version reporting. fun

This commit is contained in:
Dane Springmeyer 2010-11-17 21:31:42 +00:00
parent 3b541414ab
commit 20ffa2e7e6

View file

@ -67,7 +67,7 @@ def get_libtool_version():
cmd = 'glibtool' cmd = 'glibtool'
fallback_version = 2 fallback_version = 2
version = None version = None
pattern = r'(.*[^\S])(\d{1}\.\d+\.\d+)(.*[^\S])' pattern = r'(.*[^\S])(\d{1}\.\d+\.?\d?)(.*[^\S])'
ret = os.popen('%s --version' % cmd).read() ret = os.popen('%s --version' % cmd).read()
match = re.match(pattern,ret) match = re.match(pattern,ret)
if match: if match: