From f5c8e4e75abbf7ba0161fdbacdff6c2ed89d1331 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Fri, 23 Nov 2018 13:14:23 +0000 Subject: SConstruct: fix xsltproc making man pages. xsltproc never output on stdout. So the redirect did nothing, and was overwritten by the output of xsltproc. --- SConstruct | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 0c3cd247..a8e94688 100644 --- a/SConstruct +++ b/SConstruct @@ -551,11 +551,15 @@ def CheckXsltproc(context): ''') 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"): -- cgit v1.2.1