From: Michael Smith Date: Fri, 14 Apr 2006 04:58:31 +0000 (+0000) Subject: Added support for writing man files into a specific output X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d07e937dc8f7b3bf5c233ee920be8dfb890defe;p=docbook-dsssl Added support for writing man files into a specific output directory and into appropriate subdirectories within that output directory. Controlled through the man.base.dir parameter (similar to the base.dir support in the HTML stylesheet) and the man.subdirs.enabled parameter, which automatically determines the name of an appropriate subdir (for example, man/man7, man/man1, etc.) based on the section number/manvolnum of the source Refentry. Closes #1255036 and #1170317. Thanks to Denis Bradford for the original feature request, and to Costin Stroie for submitting a patch that was very helpful in implementing the support. --- diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl index 755e8f01d..9c4b42e98 100644 --- a/xsl/manpages/docbook.xsl +++ b/xsl/manpages/docbook.xsl @@ -37,7 +37,7 @@ - 0 + 0 MAN.MANIFEST 0 0 @@ -47,6 +47,8 @@ B B ---- + man/ + @@ -72,8 +74,8 @@ - - + + @@ -86,7 +88,7 @@ - + MAN.MANIFEST diff --git a/xsl/manpages/utility.xsl b/xsl/manpages/utility.xsl index 28643f455..20814d925 100644 --- a/xsl/manpages/utility.xsl +++ b/xsl/manpages/utility.xsl @@ -225,15 +225,27 @@ - - - + + + + + + + + + + + + + select="concat($dirname, + normalize-space($name), + '.', normalize-space($section))"/>