diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-03-30 08:00:14 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-03-30 08:00:14 (GMT) |
commit | e1691fa514c04694da6525afb1b9ef4362356525 (patch) | |
tree | fa5dcdbc91bd65f2cd0a5651324c7b18b95265a5 | |
parent | 356a2f03e8c7e4cc1b2852fc7b530357c3213787 (diff) | |
download | swift-e1691fa514c04694da6525afb1b9ef4362356525.zip swift-e1691fa514c04694da6525afb1b9ef4362356525.tar.bz2 |
Fix DocBook catalog generation on windows.
-rw-r--r-- | BuildTools/DocBook/SCons/DocBook.py | 9 |
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() |