diff options
author | Stefan Schubert <schubi@suse.de> | 2022-10-21 16:07:25 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2022-10-27 12:12:17 +0000 |
commit | 3790bd4aa373187a36e4667873a178ae50f7ecba (patch) | |
tree | fabb66078797da5039c7bce92a6184509803af56 /doc/custom-man.xsl.in | |
parent | f69a6042da801096c94b30465c118e17c803f5c2 (diff) | |
download | pam-3790bd4aa373187a36e4667873a178ae50f7ecba.tar.gz pam-3790bd4aa373187a36e4667873a178ae50f7ecba.tar.bz2 pam-3790bd4aa373187a36e4667873a178ae50f7ecba.zip |
doc: make stylesheets configurable
Before this change, all stylesheets were hardcoded.
With this change, stylesheets can be defined at configure stage.
* configure.ac: Add new options to configure stylesheets:
--enable-html-stylesheet=FILE
--enable-txt-stylesheet=FILE
--enable-pdf-stylesheet=FILE
--enable-man-stylesheet=FILE
* doc/custom-html.xsl: Rename to doc/custom-html.xsl.in, parametrize html
stylesheet.
* doc/custom-man.xsl: Rename to doc/custom-man.xsl.in, parametrize man
stylesheet.
* doc/.gitignore: Add custom-man.xsl and custom-html.xsl.
* doc/adg/Makefile.am: Use stylesheet variables.
* doc/mwg/Makefile.am: Likewise.
* doc/sag/Makefile.am: Likewise.
Resolves: https://github.com/linux-pam/linux-pam/pull/499
Diffstat (limited to 'doc/custom-man.xsl.in')
-rw-r--r-- | doc/custom-man.xsl.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/custom-man.xsl.in b/doc/custom-man.xsl.in new file mode 100644 index 00000000..258627bf --- /dev/null +++ b/doc/custom-man.xsl.in @@ -0,0 +1,9 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ss="http://docbook.sf.net/xmlns/string.subst/1.0" version="1.0"> + <xsl:import href="MAN_STYLESHEET"/> + <xsl:param name="vendordir"/> + + <xsl:param name="man.string.subst.map.local.pre"> + <ss:substitution oldstring="%vendordir%" newstring="{$vendordir}" /> + </xsl:param> +</xsl:stylesheet> |