summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-06-14 20:09:37 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-06-14 20:09:37 (GMT)
commitbacf54039eceff118f7d05522331851ba41d1e25 (patch)
tree2ac18627a0079dd58d190536b259788965794ff5 /src/engine
parent15906a8f315b983279d0a6f8867ef1c15f6a0f4f (diff)
downloadSCons-bacf54039eceff118f7d05522331851ba41d1e25.zip
SCons-bacf54039eceff118f7d05522331851ba41d1e25.tar.gz
SCons-bacf54039eceff118f7d05522331851ba41d1e25.tar.bz2
docbook force order used to search for fop tool to fop, xep, jw. It looks like jw command line may be incorrect as it doesn't work on ubuntu 14.04 16.06 or macports installs of docbook-utils
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Tool/docbook/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/docbook/__init__.py b/src/engine/SCons/Tool/docbook/__init__.py
index d3ea8ae..d60789d 100644
--- a/src/engine/SCons/Tool/docbook/__init__.py
+++ b/src/engine/SCons/Tool/docbook/__init__.py
@@ -43,6 +43,8 @@ import SCons.Script
import SCons.Tool
import SCons.Util
+
+__debug_tool_location = False
# Get full path to this script
scriptpath = os.path.dirname(os.path.realpath(__file__))
@@ -182,8 +184,12 @@ def __detect_cl_tool(env, chainkey, cdict, cpriority=None):
if cpriority is None:
cpriority = cdict.keys()
for cltool in cpriority:
+ if __debug_tool_location:
+ print("DocBook: Looking for %s"%cltool)
clpath = env.WhereIs(cltool)
if clpath:
+ if __debug_tool_location:
+ print("DocBook: Found:%s"%cltool)
env[chainkey] = clpath
if not env[chainkey + 'COM']:
env[chainkey + 'COM'] = cdict[cltool]
@@ -204,7 +210,7 @@ def _detect(env):
__detect_cl_tool(env, 'DOCBOOK_XSLTPROC', xsltproc_com, xsltproc_com_priority)
__detect_cl_tool(env, 'DOCBOOK_XMLLINT', xmllint_com)
- __detect_cl_tool(env, 'DOCBOOK_FOP', fop_com)
+ __detect_cl_tool(env, 'DOCBOOK_FOP', fop_com, ['fop','xep','jw'])
#
# Scanners