Changeset be428d1 in rtems-docs


Ignore:
Timestamp:
Oct 27, 2016, 11:03:34 PM (3 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
4.11, master
Children:
9b53679
Parents:
f233256
Message:

common/waf.py: Improve Sphinx version parsing to work with their git master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/waf.py

    rf233256 rbe428d1  
    1 import sys, os
     1import sys, os, re
    22from waflib.Build import BuildContext
    33
     
    5454        version = ctx.cmd_and_log(ctx.env.BIN_SPHINX_BUILD + ['--version']).split(" ")[-1:][0].strip()
    5555        try:
    56                 ver = tuple(map(int, version.split(".")))
     56                ver = tuple(map(int, re.split('[\D]', version)))
    5757        except:
    5858                ctx.fatal("Sphinx version cannot be checked: %s" % version)
Note: See TracChangeset for help on using the changeset viewer.