summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-03-30 08:00:14 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-03-30 08:00:14 (GMT)
commite1691fa514c04694da6525afb1b9ef4362356525 (patch)
treefa5dcdbc91bd65f2cd0a5651324c7b18b95265a5 /BuildTools/DocBook
parent356a2f03e8c7e4cc1b2852fc7b530357c3213787 (diff)
downloadswift-e1691fa514c04694da6525afb1b9ef4362356525.zip
swift-e1691fa514c04694da6525afb1b9ef4362356525.tar.bz2
Fix DocBook catalog generation on windows.
Diffstat (limited to 'BuildTools/DocBook')
-rw-r--r--BuildTools/DocBook/SCons/DocBook.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/BuildTools/DocBook/SCons/DocBook.py b/BuildTools/DocBook/SCons/DocBook.py
index d3ef7c5..eb6473a 100644
--- a/BuildTools/DocBook/SCons/DocBook.py
+++ b/BuildTools/DocBook/SCons/DocBook.py
@@ -26,10 +26,15 @@ def generate(env) :
rewritePrefix="%(docbook_xsl_dir)s/" />
</catalog>"""
+ docbook_xml_dir = source[0].get_contents()
+ docbook_xsl_dir = source[1].get_contents()
+ if env["PLATFORM"] == "win32" :
+ docbook_xml_dir = docbook_xml_dir.replace("\\","/")
+ docbook_xsl_dir = docbook_xsl_dir.replace("\\","/")
file = open(target[0].abspath, "w")
file.write(catalog % {
- "docbook_xml_dir" : source[0].get_contents(),
- "docbook_xsl_dir" : source[1].get_contents(),
+ "docbook_xml_dir" : docbook_xml_dir,
+ "docbook_xsl_dir" : docbook_xsl_dir,
})
file.close()