From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23968 invoked by alias); 30 May 2004 15:37:39 -0000 Mailing-List: contact docbook-tools-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: docbook-tools-discuss-owner@sources.redhat.com Received: (qmail 23961 invoked from network); 30 May 2004 15:37:38 -0000 Received: from unknown (HELO mail.courier-mta.com) (216.254.115.84) by sourceware.org with SMTP; 30 May 2004 15:37:38 -0000 Received: from localhost (localhost [127.0.0.1]) (uid 8) by grandpa.email-scan.com with local; Sun, 30 May 2004 11:37:56 -0400 id 000BF07E.40B9FFD4.00002E21 X-IMAP-Sender: mrsam@courier-mta.com References: <20040530091432.GD2489@redhat.com> Message-ID: From: Sam Varshavchik Cc: docbook-tools-discuss@sources.redhat.com X-PGP-KEY: http://www.courier-mta.org/KEYS.bin Subject: Re: docbook2man backend bug. Date: Sun, 30 May 2004 15:37:00 -0000 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_grandpa.email-scan.com-1085931476-0000" X-SW-Source: 2004/txt/msg00013.txt.bz2 This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_grandpa.email-scan.com-1085931476-0000 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-length: 657 Tim Waugh writes: > On Sat, May 29, 2004 at 08:41:04PM -0400, Sam Varshavchik wrote: > >> The --include option does not work when using the docbook2man wrapper >> script. >> >> Given the limitations of the man backend, this effectively rules out any >> kind of a workaround using --include. >> >> /usr/share/sgml/docbook/utils-$VER/backends/man invokes nsgmls without any >> arguments. >> >> I fixed this bug by exporting SGML_INCLUDE from /usr/bin/jw, then passing >> $SGML_INCLUDE as a parameter to nsgmls, in the man wrapper. >> >> I'm surprised that this hasn't been noticed before. > > Do you have a patch for it? Let's try the following. --=_grandpa.email-scan.com-1085931476-0000 Content-Disposition: attachment; FILENAME=util.patch.txt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 945 --- backends/man.in.orig 2003-02-11 07:56:23.000000000 -0500 +++ backends/man.in 2004-05-30 11:34:22.232535328 -0400 @@ -7,7 +7,7 @@ TMPDIR=`mktemp -d /tmp/man.XXXXXX` || \ { echo >&2 "man backend: could not create secure temporary directory"; exit 1;} trap 'rm -rf "${TMPDIR}"' EXIT -nsgmls $SGML_FILE > "${TMPDIR}/nsgmls.tmp" +nsgmls $SGML_INCLUDE $SGML_FILE > "${TMPDIR}/nsgmls.tmp" sgmlspl $HELPER <"${TMPDIR}/nsgmls.tmp" 2>"${TMPDIR}/errs" if [ $? -ne 0 ] then --- bin/jw.in.orig 2003-04-30 12:21:49.000000000 -0400 +++ bin/jw.in 2004-05-30 11:33:12.343064145 -0400 @@ -423,7 +423,7 @@ echo "Using stylesheet: $SGML_STYLESHEET" echo "Working on: $SGML_FILE" cd $SGML_OUTPUT_DIRECTORY -export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS +export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS SGML_INCLUDE export SGML_CATALOG_FILES SGML_BASE_DIR SGML_FILE SGML_STYLESHEET NOCHUNKS=`echo $SGML_OPTIONS | grep nochunks` if [ -z "$NOCHUNKS" ] --=_grandpa.email-scan.com-1085931476-0000--