This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fw: sgml to html


On Wed, 2002-08-07 at 08:45, Martin Buck wrote:
> Gary Thomas wrote:
> > > jade -t sgml -i html -c /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog -d ../../packages/pkgconf/stylesheet.dsl#html ecos.sgml
> > >
> > 
> > The problem is that my stylesheets are named differently!
> 
> The stylesheets are probably the same, but the catalog is different. You
> tell jade that the catalog is in
> /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog, but it
> really is in /etc/sgml.catalog (managed automagically by
> install-sgmlcatalog(8) on Debian).
> 
> The catalog file in /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh (which
> happend to change its name between potato and woody) is just the
> fragment that gets inserted into /etc/sgml.catalog by
> install-sgmlcatalog but probably shouldn't be used directly by anybody.
> 
> Looks like we have to add one more path to packages/pkgconf/rules.doc...
> 
> Please note that I know exactly nothing about SGML, so everyhting I
> wrote could be wrong. But at least it still makes sense to me after I
> just read it again ;-)

That's already being handled.  I finally got it going with this change,
which I'll go ahead and commit:

Index: pkgconf/rules.doc
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/pkgconf/rules.doc,v
retrieving revision 1.4
diff -u -5 -p -r1.4 rules.doc
--- pkgconf/rules.doc	23 May 2002 23:08:24 -0000	1.4
+++ pkgconf/rules.doc	7 Aug 2002 15:02:13 -0000
@@ -57,17 +57,26 @@
 
 # Locations of the stylesheets and other SGML support files. These
 # have moved around in various releases of the tools.
 ifneq (,$(wildcard /usr/share/sgml/docbook))
   CATALOG	:= /etc/sgml/catalog
-  DSSSL_CATALOG := $(firstword $(wildcard /usr/share/sgml/docbook/dsssl-stylesheets-*/catalog))
+  ifneq (,$(wildcard /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/catalog))
+    DSSSL_CATALOG  := /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/catalog
+  else
+    DSSSL_CATALOG := $(firstword $(wildcard /usr/share/sgml/docbook/dsssl-stylesheets-*/catalog))
+  endif
 else
   ifneq (,$(wildcard /usr/lib/sgml/stylesheets/nwalsh-modular/catalog))
     CATALOG          := /usr/lib/sgml/CATALOG
     DSSSL_CATALOG    := /usr/lib/sgml/stylesheets/nwalsh-modular/catalog
   else
-    Error: unable to locate DocBook tools.
+    ifneq (,$(wildcard /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog))
+      CATALOG        := /usr/lib/sgml/catalog
+      DSSSL_CATALOG  := /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog
+    else
+      Error: unable to locate DocBook tools.
+    endif
   endif
 endif
 ECOS_STYLESHEET  := $(TOPLEVEL)/pkgconf/stylesheet.dsl
 FIXHTML          := $(TOPLEVEL)/pkgconf/fixhtml.tcl
 
-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]