From 239e0a0ca15f14643134954183f44d0c3b018638 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 14 Apr 2006 04:58:31 +0000 Subject: [PATCH] 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. --- xsl/manpages/docbook.xsl | 10 ++++++---- xsl/manpages/utility.xsl | 20 ++++++++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) 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))"/> -- 2.40.0