From b7cafb1b379f33f3438926a470b14af10b0154c8 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Wed, 1 Nov 2017 22:03:19 +0100 Subject: [PATCH] mkhtml/pdf: log the xsltproc command lines The helps standalone repro. --- gtkdoc/mkhtml.py | 3 +++ gtkdoc/mkpdf.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gtkdoc/mkhtml.py b/gtkdoc/mkhtml.py index 3d03e0a..ca84f79 100644 --- a/gtkdoc/mkhtml.py +++ b/gtkdoc/mkhtml.py @@ -21,6 +21,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # +import logging import os import sys import subprocess @@ -37,11 +38,13 @@ def run_xsltproc(options, args): if os.environ.get("GTKDOC_PROFILE", '') == '': for path in options.path: command += ['--path', path] + logging.info('running "%s"', ' '.join(command + args)) return subprocess.call(command + args) else: command += ['--profile'] for path in options.path: command += ['--path', path] + logging.info('running "%s"', ' '.join(command + args)) return subprocess.call(command + args, stderr=open('profile.txt', 'w')) diff --git a/gtkdoc/mkpdf.py b/gtkdoc/mkpdf.py index 485b487..75cf926 100755 --- a/gtkdoc/mkpdf.py +++ b/gtkdoc/mkpdf.py @@ -22,6 +22,7 @@ # Support both Python 2 and 3 from __future__ import print_function +import logging import os import sys import subprocess @@ -35,6 +36,7 @@ def run_xsltproc(options, args): # copied from the header into docs under xml for path in options.path: command += ['--path', path] + logging.info('running "%s"', ' '.join(command + args)) pc = subprocess.Popen(command + args, stderr=subprocess.PIPE) (o, stde) = pc.communicate() with open('profile.txt', 'wb') as h: -- 2.11.4.GIT