Changeset 14bbcb1 in rtems-docs
- Timestamp:
- 01/19/16 14:55:57 (8 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 89f2347
- Parents:
- 9b5801a
- git-author:
- Amar Takhar <amar@…> (01/19/16 14:55:57)
- git-committer:
- Amar Takhar <verm@…> (05/03/16 00:51:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/waf.py
r9b5801a r14bbcb1 1 1 import sys, os 2 2 from waflib.Build import BuildContext 3 4 5 sphinx_min_version = (1,3) 3 6 4 7 def cmd_spell(ctx): … … 33 36 34 37 38 39 def check_sphinx_version(ctx, minver): 40 # try: 41 version = ctx.cmd_and_log(ctx.env.BIN_SPHINX_BUILD + ['--version']).split(" ")[-1:][0] 42 ver = tuple(map(int, version.split("."))) 43 # except Exception: 44 # ctx.fatal("Version check failed please report") 45 46 if ver < minver: 47 ctx.fatal("Sphinx version is too old: %s" % ".".join(map(str, ver))) 48 49 return ver 50 35 51 def cmd_configure(ctx): 36 52 ctx.load('tex') 53 37 54 38 55 if not ctx.env.PDFLATEX: … … 40 57 41 58 ctx.find_program("sphinx-build", var="BIN_SPHINX_BUILD", mandatory=True) 42 # ctx.find_program("pdflatex", var="BIN_PDFLATEX", mandatory=True)43 59 ctx.find_program("aspell", var="BIN_ASPELL", mandatory=False) 60 61 62 ctx.start_msg("Checking if Sphinx is at least %s.%s" % sphinx_min_version) 63 ver = check_sphinx_version(ctx, sphinx_min_version) 64 65 ctx.end_msg("yes (%s)" % ".".join(map(str, ver))) 66 44 67 45 68
Note: See TracChangeset
for help on using the changeset viewer.