Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 59194 - [FIX ATTACHED] db2html dosn't like *.xml files
[FIX ATTACHED] db2html dosn't like *.xml files
Product: Red Hat Linux
Classification: Retired
Component: docbook-utils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2002-02-01 17:36 EST by Crutcher Dunnavant
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-02-05 13:05:36 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
db2html (745 bytes, text/plain)
2002-02-01 17:37 EST, Crutcher Dunnavant
no flags Details
db2html (747 bytes, text/plain)
2002-02-01 17:52 EST, Crutcher Dunnavant
no flags Details
db2html (805 bytes, text/plain)
2002-02-04 14:09 EST, Crutcher Dunnavant
no flags Details

  None (edit)
Description Crutcher Dunnavant 2002-02-01 17:36:46 EST
Description of Problem:
db2html is a wrapper around jw, and a thin one at that. However, when originally
written, it made assumptions which are no longer true. Specifical, that it would
alwas work on files of the form *.sgml or *.sgm.

The issue is that it uses a line like this:
   output="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,')"
To figgure out the output directory.

This does not work for *.xml files.

Attached is a modified version of db2html, which extends the sed line. It also
adds a command line switch for '-o' which allows explicit setting of the output
directory the way that help says it will.
Comment 1 Crutcher Dunnavant 2002-02-01 17:37:30 EST
Created attachment 44317 [details]
Comment 2 Crutcher Dunnavant 2002-02-01 17:51:28 EST

Sorry, use this version (negated a test :(
Comment 3 Crutcher Dunnavant 2002-02-01 17:52:16 EST
Created attachment 44318 [details]
Comment 4 Tim Waugh 2002-02-01 18:28:48 EST
Oops, yes.  I didn't think about XML when I wrote it.  Thanks.
Comment 5 Crutcher Dunnavant 2002-02-04 13:49:22 EST
the -o switch I put in is all wrong. :(
Trying to fix.
Comment 6 Crutcher Dunnavant 2002-02-04 14:05:25 EST
This version seems to be much better.
Sorry about the last one. It was friday and I was heading for a date, so I
didn't test it much.
Comment 7 Crutcher Dunnavant 2002-02-04 14:09:32 EST
Created attachment 44437 [details]
Comment 8 Tim Waugh 2002-02-05 09:22:21 EST
Crutcher: learn shell one day. :-)

I see what you're trying to do, and I will fix it for next time.
Comment 9 Tim Waugh 2002-02-06 11:41:22 EST
Fixed in 0.6.9-21.  I left -o out: if you care, use docbook2html instead.

Note You need to log in before you can comment on or make changes to this bug.