summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-06-14 20:07:50 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-06-14 20:07:50 (GMT)
commit8ea37bc5fb8ba4357fc1e3464e96583fe651da93 (patch)
treef7701c9e55cb87a431ae59186ed194ea059134f5 /BuildTools/DocBook
parent9f542c719460650f1eb63b651ff1576362e5eeac (diff)
downloadswift-8ea37bc5fb8ba4357fc1e3464e96583fe651da93.zip
swift-8ea37bc5fb8ba4357fc1e3464e96583fe651da93.tar.bz2
Remove DocBook from Debian sources.
Diffstat (limited to 'BuildTools/DocBook')
-rw-r--r--BuildTools/DocBook/SCons/DocBook.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/BuildTools/DocBook/SCons/DocBook.py b/BuildTools/DocBook/SCons/DocBook.py
index eb6473a..be3d4f6 100644
--- a/BuildTools/DocBook/SCons/DocBook.py
+++ b/BuildTools/DocBook/SCons/DocBook.py
@@ -10,8 +10,14 @@ def generate(env) :
docbook_dir = "#/BuildTools/DocBook"
docbook_xsl_style_dir = env.Dir(docbook_dir + "/Stylesheets").abspath
docbook_xml_catalog = env.File("catalog.xml").abspath
- docbook_xml_dir = env.Dir("#/3rdParty/DocBook/XML").abspath
- docbook_xsl_dir = env.Dir("#/3rdParty/DocBook/XSL").abspath
+ if "DOCBOOK_XML_DIR" in env :
+ docbook_xml_dir = env.Dir("$DOCBOOK_XML_DIR").abspath
+ else :
+ docbook_xml_dir = env.Dir("#/3rdParty/DocBook/XML").abspath
+ if "DOCBOOK_XSL_DIR" in env :
+ docbook_xsl_dir = env.Dir("$DOCBOOK_XSL_DIR").abspath
+ else :
+ docbook_xsl_dir = env.Dir("#/3rdParty/DocBook/XSL").abspath
fop_fonts_dir = env.Dir(docbook_dir + "/Fonts").abspath
# Generates a catalog from paths to external tools