Fix generation of distribution tarball
authorMichael Paquier <[email protected]>
Wed, 19 Apr 2023 04:59:52 +0000 (13:59 +0900)
committerMichael Paquier <[email protected]>
Wed, 19 Apr 2023 04:59:52 +0000 (13:59 +0900)
This issue can be reproduced by running `make dist` from the root of the
tree.  Error introduced in fcb21b3, where additions of links in
installation.sgml require custom rules in standalone-profile.xsl to make
sure that ./INSTALL is generated correctly for the distribution tarball,
where links are replaced by equivalent terms from the profile file
changed by this commit.

Per buildfarm member guaibasaurus.

Discussion: https://postgr.es/m/[email protected]

doc/src/sgml/standalone-profile.xsl

index ea8a8f17287949db7ecab1c6e974383dede238ec..1b3938a638d67bf3cec3aadb8ecbe1c3927c9e5b 100644 (file)
@@ -40,6 +40,10 @@ variant without links and references to the main documentation.
   <xsl:text>the documentation about client authentication and libpq</xsl:text>
 </xsl:template>
 
+<xsl:template match="xref[@linkend='collation']">
+  <xsl:text>the documentation</xsl:text>
+</xsl:template>
+
 <xsl:template match="xref[@linkend='docguide-toolsets']">
   <xsl:text>the main documentation's appendix on documentation</xsl:text>
 </xsl:template>
@@ -60,6 +64,10 @@ variant without links and references to the main documentation.
   <xsl:text>the documentation</xsl:text>
 </xsl:template>
 
+<xsl:template match="xref[@linkend='locale-providers']">
+  <xsl:text>the documentation</xsl:text>
+</xsl:template>
+
 <xsl:template match="xref[@linkend='plpython-python23']">
   <xsl:text>the </xsl:text><application>PL/Python</application><xsl:text> documentation</xsl:text>
 </xsl:template>