Changed the output format of "cat ... EOF" blocks to allow ampersands.
This commit is contained in:
parent
78713250a8
commit
6ec43e3112
1 changed files with 11 additions and 2 deletions
|
@ -91,12 +91,21 @@
|
|||
<xsl:when test="string() = 'make check'">
|
||||
<xsl:text>make -k check</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains(string(),'EOF')">
|
||||
<xsl:variable name="content">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="substring-before(string($content), 'cat >')"/>
|
||||
<xsl:text>
(
cat << EOF</xsl:text>
|
||||
<xsl:value-of select="substring-after(string($content), '"EOF"')"/>
|
||||
<xsl:text>
) ></xsl:text>
|
||||
<xsl:value-of select="substring-after((substring-before(string($content), '<<')), 'cat >')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="not(contains(string(),'EOF')) and
|
||||
not(contains(string(),'check')) and
|
||||
<xsl:if test="not(contains(string(),'check')) and
|
||||
not(contains(string(),'strip '))">
|
||||
<xsl:text> &&</xsl:text>
|
||||
</xsl:if>
|
||||
|
|
Reference in a new issue