After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 88746 - Tutorial makefile is dial-up unfriendly
Tutorial makefile is dial-up unfriendly
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: reference documentation
2.0
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-07-21 20:26 UTC by mmagallo
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for docs/tutotial/Makefile.am (1.50 KB, patch)
2002-07-21 20:27 UTC, mmagallo
none Details | Review

Description mmagallo 2002-07-21 20:26:33 UTC
docs/tutorial/Makefile.am is unfriendly towards dial-up users.  xsltproc
will download a large file from the Docbook website in order to generate
the tuturial.  The attached patch makes the Makefile check for an
environment variable pointing to the location of the stylesheet to use.
Comment 1 mmagallo 2002-07-21 20:27:14 UTC
Created attachment 9994 [details] [review]
Patch for docs/tutotial/Makefile.am
Comment 2 Murray Cumming 2002-07-22 07:55:57 UTC
Is this a standard way to get the local stylesheet? A libxml/xsl way?
What does ?= mean?
Comment 3 mmagallo 2002-07-22 09:09:30 UTC
I couldn't figure a standard way of finding where the stylesheets are.
 xsltproc wants a path or a URL, there doesn't seem to be a way of
telling it "I want the stylesheet that converts Docbook into HTML with
pink background".  Reading the docs, you can tell it where your DTDs
are and where your stylesheets are, but that's it.

There's also no docbook-xsl2html or something like that.

And there doesn't seem to be a way of finding out where the stylesheet
is.  My catalog files (/etc/sgml/catalog on my system) doesn't list
this chunk.xsl either.

Given that no truly generic interface seems to exist, I opted for
using an environment varialbe with what I considered to be a sensible
name.  Someone with a clue regarding XSLT might be helpful here.

?= in the makefile sets the variable only if it doesn't have a value
already.  This makes it possible to use variables from the environment
("make FOO=bar" overrides FOO in the Makefile but "export FOO=bar;
make" doesn't).  IOW, I'm just setting a default value which can be
overriden from the environment.
Comment 4 Murray Cumming 2002-07-22 17:15:27 UTC
Applied. Thanks.