Author: pierre
Date: Sun Jan 14 12:19:14 2018
New Revision: 4029

Log:
Do not add >> $TESTLOG to lines ending with "\"

Modified:
   jhalfs/trunk/LFS/lfs.xsl

Modified: jhalfs/trunk/LFS/lfs.xsl
==============================================================================
--- jhalfs/trunk/LFS/lfs.xsl    Sun Jan 14 02:26:43 2018        (r4028)
+++ jhalfs/trunk/LFS/lfs.xsl    Sun Jan 14 12:19:14 2018        (r4029)
@@ -966,7 +966,10 @@
               </xsl:when>
               <xsl:otherwise>
                 <xsl:value-of select="$instructions"/>
-                <xsl:if test="not(contains($instructions, '&gt;&gt;'))">
+                <xsl:if
+                  test="not(contains($instructions, '&gt;&gt;')) and
+                        substring($instructions,
+                                  string-length($instructions)) != '\'">
                   <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
                 </xsl:if>
                 <xsl:text>&#xA;</xsl:text>
@@ -982,7 +985,9 @@
               </xsl:when>
               <xsl:otherwise>
                 <xsl:value-of select="$instructions"/>
-                <xsl:if test="not(contains($instructions, '&gt;&gt;'))">
+                <xsl:if test="not(contains($instructions, '&gt;&gt;')) and
+                        substring($instructions,
+                                  string-length($instructions)) != '\'">
                   <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
                 </xsl:if>
                 <xsl:text>&#xA;</xsl:text>
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to