Clossing dumped scripts with a plain "exit" to prevent && at the end of the file when the last <screen> block is a non dumped block.

This commit is contained in:
Manuel Canales Esparcia 2005-10-03 19:26:44 +00:00
parent 7bbd436739
commit 816f3f43ee

View file

@ -50,6 +50,7 @@
<xsl:text>cd $PKGDIR &amp;&amp;&#xA;</xsl:text> <xsl:text>cd $PKGDIR &amp;&amp;&#xA;</xsl:text>
</xsl:if> </xsl:if>
<xsl:apply-templates select=".//para/userinput | .//screen"/> <xsl:apply-templates select=".//para/userinput | .//screen"/>
<xsl:text>exit</xsl:text>
</exsl:document> </exsl:document>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
@ -60,13 +61,6 @@
<xsl:when test="@role = 'nodump'"/> <xsl:when test="@role = 'nodump'"/>
<xsl:otherwise> <xsl:otherwise>
<xsl:apply-templates select="userinput" mode="screen"/> <xsl:apply-templates select="userinput" mode="screen"/>
<xsl:if test="position() != last() and
not(contains(string(),'EOF')) and
not(contains(string(),'check')) and
not(ancestor::sect1[@id='ch-tools-stripping'])">
<xsl:text> &amp;&amp;</xsl:text>
</xsl:if>
<xsl:text>&#xA;</xsl:text>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:if> </xsl:if>
@ -92,6 +86,11 @@
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:if test="not(contains(string(),'EOF')) and
not(contains(string(),'check'))">
<xsl:text> &amp;&amp;</xsl:text>
</xsl:if>
<xsl:text>&#xA;</xsl:text>
</xsl:template> </xsl:template>
<xsl:template match="replaceable"> <xsl:template match="replaceable">