public inbox for docbook-tools-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Sam Varshavchik <mrsam@courier-mta.com>
Cc: docbook-tools-discuss@sources.redhat.com
Subject: Re: docbook2man backend bug.
Date: Sun, 30 May 2004 15:37:00 -0000	[thread overview]
Message-ID: <cone.1085931476.908771.2195.501@grandpa.email-scan.com> (raw)
In-Reply-To: <20040530091432.GD2489@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

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.


[-- Attachment #2: util.patch.txt --]
[-- Type: text/plain, Size: 945 bytes --]

--- 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" ]

  reply	other threads:[~2004-05-30 15:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-30  0:41 Sam Varshavchik
2004-05-30  9:14 ` Tim Waugh
2004-05-30 15:37   ` Sam Varshavchik [this message]
2004-06-10  1:43     ` Tim Waugh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cone.1085931476.908771.2195.501@grandpa.email-scan.com \
    --to=mrsam@courier-mta.com \
    --cc=docbook-tools-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).