* docbook2man backend bug.
@ 2004-05-30 0:41 Sam Varshavchik
2004-05-30 9:14 ` Tim Waugh
0 siblings, 1 reply; 4+ messages in thread
From: Sam Varshavchik @ 2004-05-30 0:41 UTC (permalink / raw)
To: docbook-tools-discuss
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
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.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: docbook2man backend bug.
2004-05-30 0:41 docbook2man backend bug Sam Varshavchik
@ 2004-05-30 9:14 ` Tim Waugh
2004-05-30 15:37 ` Sam Varshavchik
0 siblings, 1 reply; 4+ messages in thread
From: Tim Waugh @ 2004-05-30 9:14 UTC (permalink / raw)
To: Sam Varshavchik; +Cc: docbook-tools-discuss
[-- Attachment #1: Type: text/plain, Size: 628 bytes --]
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?
Thanks,
Tim.
*/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: docbook2man backend bug.
2004-05-30 9:14 ` Tim Waugh
@ 2004-05-30 15:37 ` Sam Varshavchik
2004-06-10 1:43 ` Tim Waugh
0 siblings, 1 reply; 4+ messages in thread
From: Sam Varshavchik @ 2004-05-30 15:37 UTC (permalink / raw)
Cc: docbook-tools-discuss
[-- 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" ]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-04 10:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-30 0:41 docbook2man backend bug Sam Varshavchik
2004-05-30 9:14 ` Tim Waugh
2004-05-30 15:37 ` Sam Varshavchik
2004-06-10 1:43 ` Tim Waugh
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).