Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect DocBook path and generalize doc build rules #259

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blanktonio
Copy link

On my system, DocBook 4.5 stylesheet path is nowhere “a constant”:

$ xmlcatalog /etc/xml/catalog http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
/usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl

This patch replaces hardcoded path with a generic URI, which is translated to local path automatically, using offline XML catalog.

I also replaced repeating rules for building man pages with a single pattern rule to avoid duplication and facilitate future documentation additions.

Host-specific location of DocBook stylesheets is determined automatically
by translating a generic URI to local path, using offline XML catalog.

Repeating rules for building man pages are replaced by single pattern rule.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants