[yelp-tools/issue22] Ensure trailing slash on output dir for DocBook




commit 4f3984b6abe090f25fd302fbfceca3b04d6df165
Author: Shaun McCance <shaunm redhat com>
Date:   Wed Oct 12 10:30:30 2022 -0400

    Ensure trailing slash on output dir for DocBook
    
    xsltproc is picky. We already do this for Mallard, but missed it for DocBook.
    
    https://gitlab.gnome.org/GNOME/yelp-tools/-/issues/22

 tools/yelp-build.in | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/tools/yelp-build.in b/tools/yelp-build.in
index 438f0820..966c6234 100755
--- a/tools/yelp-build.in
+++ b/tools/yelp-build.in
@@ -557,6 +557,9 @@ class XhtmlBuilder (Builder):
             if not os.path.isdir(output):
                 print('Output must be a directory', file=sys.stderr)
                 return 1
+        if not output.endswith('/'):
+            # xsltproc is picky about this
+            output = output + '/'
         if path is None:
             path = self.get_option_list('path')
         if path is None:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]