Blame SOURCES/docbook-xsl-mandir.patch

9d7cd5
diff -urNp docbook-xsl-1.76.1-orig/manpages/other.xsl docbook-xsl-1.76.1/manpages/other.xsl
9d7cd5
--- docbook-xsl-1.76.1-orig/manpages/other.xsl	2010-08-27 05:14:52.000000000 +0200
9d7cd5
+++ docbook-xsl-1.76.1/manpages/other.xsl	2011-09-06 17:17:07.973737258 +0200
9d7cd5
@@ -595,7 +595,14 @@ manvolnum
9d7cd5
           <xsl:with-param name="message-prolog">Note: </xsl:with-param>
9d7cd5
           <xsl:with-param name="message-epilog"> (soelim stub)</xsl:with-param>
9d7cd5
           <xsl:with-param name="content">
9d7cd5
-            <xsl:value-of select="'.so '"/>
9d7cd5
+            <xsl:choose>
9d7cd5
+              <xsl:when test="$man.output.in.separate.dir = 0">
9d7cd5
+              <xsl:value-of select="concat('.so man', $section, '/')"/>
9d7cd5
+              </xsl:when>
9d7cd5
+              <xsl:otherwise>
9d7cd5
+              <xsl:value-of select="'.so '"/> 
9d7cd5
+              </xsl:otherwise>
9d7cd5
+              </xsl:choose>
9d7cd5
             <xsl:call-template name="make.adjusted.man.filename">
9d7cd5
               <xsl:with-param name="name" select="$first.refname"/>
9d7cd5
               <xsl:with-param name="section" select="$section"/>