diff options
author | Gary E. Miller <gem@rellim.com> | 2018-11-23 13:14:23 +0000 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-11-23 13:14:23 +0000 |
commit | f5c8e4e75abbf7ba0161fdbacdff6c2ed89d1331 (patch) | |
tree | bcc902370f63a6aa7eb44d38780b6301f8e48cd5 /SConstruct | |
parent | d6140016d98bcb58730361ffc44f54b5e0c1c414 (diff) | |
download | gpsd-f5c8e4e75abbf7ba0161fdbacdff6c2ed89d1331.tar.gz |
SConstruct: fix xsltproc making man pages.
xsltproc never output on stdout. So the redirect did nothing, and
was overwritten by the output of xsltproc.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -551,11 +551,15 @@ def CheckXsltproc(context): </refentry> ''') ofp.close() - probe = "xsltproc --nonet --noout '%s' man/xmltest.xml" % (docbook_man_uri,) + probe = ("xsltproc --output man/foo.1 --nonet --noout '%s' " + "man/xmltest.xml" % (docbook_man_uri,)) ret = context.TryAction(probe)[0] os.remove("man/xmltest.xml") if os.path.exists("foo.1"): os.remove("foo.1") + else: + # failed to create output + ret = False context.Result(ret) return ret @@ -937,7 +941,7 @@ else: manbuilder = htmlbuilder = None if env['manbuild']: if config.CheckXsltproc(): - build = "xsltproc --nonet %s $SOURCE >$TARGET" + build = "xsltproc --output $TARGET --nonet %s $SOURCE " htmlbuilder = build % docbook_html_uri manbuilder = build % docbook_man_uri elif WhereIs("xmlto"): |